Re: NULL value anyone?

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

My gut reaction to the stack issue is that rather than:

x = pop(stack) 
if x=NOVALUE then 
    display("Underflow") 
else 
    display(x) 
end if 

the code should be more like

if empty(stack) then 
    display("Underflow") 
else 
    x = pop(stack) 
    display(x) 
end if 

HTH, Pete

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

Search



Quick Links

User menu

Not signed in.

Misc Menu