RE: Uninitial.Vars

new topic     » topic index » view thread      » older message » newer message

When I did send in the piece of code on pointers yesterday, i had the
gut-feeling
there was something about it I couldn't put my finger on. Waking up this morning
I knew what it was: A detour to uninitialised variables as well. Using the
length-
field a bit wiser yields this:

bit 31/32   bit 16--30                          bit 1--15                       
 type

bin 00     declared MaxLenArray(4)        initialised length             integer
01                  ""                  (8)                  ""            
               atom
10                  ""                  (1)                                
               sequence
11                  ""                  (1)                                
               object

if  declared....      =0: Variable NOT YET declared
If initialised length=0: Variable NOT initialised

You can UNDECLARE and UNINITIALISE now by setting the fields to 0.

Worth thinking it out further? Go ahead and take it as a start, I'm too absorbed
in two major projects right now, to spend more than a sunny sunday-afternoon
on it.

antoine

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu