Re: Forward reference bug: was ver. 4.0 WIN98 Binaries

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

Another bug found:

-- junk.ew -- 
sequence dscrip 
 
dscrip = PreDefList[1] 
 
if getc(0) then end if 
global constant PreDefList = "0" 
 
-- end of junk.ew -- 

This gives a runtime error about PreDefList not being assigned a value.

jimcbrown said...

I've fixed it and I'm about to check this in, but I may have discovered another bug. Need to check with Matt L about this one.

-- junk.ew -- 
sequence dscrip 
 
dscrip = PreDefList[1] 
 
if getc(0) then end if 
sequence PreDefList 
 
-- end of junk.ew -- 

That now comes up with PreDefList being an unresolved forward reference. Is that right??

If it is made a global sequence, then the parser succeeds and we get the obvious runtime error (of PreDefList not having a value).

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

Search



Quick Links

User menu

Not signed in.

Misc Menu