Uninitialized Variables

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

I have thought of a way that we can determine if a variable is 
uninitialized or not. We can also set it back to being uninitialized.

constant INF = (1e300*1e300),

integer  i   i = -INF
atom     a   a = -INF
sequence s   s =  INF
object   o   o =  INF

I tried to use NAN as well, but everything is equal to NAN!?
NAN=1
NAN=-NAN
NAN=INF
NAN=-5039487

Is that proper behaviour?

Chris

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

Search



Quick Links

User menu

Not signed in.

Misc Menu