Re: [q-lang-users] Order of codes in the symbol table
Brought to you by:
agraef
From: Albert G. <Dr....@t-...> - 2008-03-06 11:15:04
|
Jir(í Spitz wrote: > I would like to ask, whether is it safe to suppose, that a consequent > declarations of enumeration types will always result in a continuous > series of codes in the symbol table. > > E.g. whether the declarations > > public type X = const x1, x2; > public type Y = const Y1, y2; > (nothing else between that two declarations) > > will always result in a continuous series > > ....., exprtype(X), exprsym(x1), exprsym(x2), exprtype(Y), exprsym(y1), > exprsym(y2), ..... Yes, this should hold in the current implementation, since the symbol table only grows and symbols never get "reused". But that might change if I ever get around implementing dynamic loading (and unloading) of Q modules at runtime. Albert -- Dr. Albert Gr"af Dept. of Music-Informatics, University of Mainz, Germany Email: Dr....@t-..., ag...@mu... WWW: http://www.musikinformatik.uni-mainz.de/ag |