1. atom equal sequence

I get no warning or crash with this code Should this code generate a warning?

-- 
constant M_EU_INFO = 75 
 
enum MAJ_VER, MIN_VER, PAT_VER, VER_TYPE, REVISION, START_TIME 
 
constant version_info = machine_func(M_EU_INFO, {}) 
 
atom start = version_info 
 
?start[START_TIME] 
 
while get_key()=-1 do 
 
end while 
new topic     » topic index » view message » categorize

2. Re: atom equal sequence

I created a ticket for this: ticket:316. It contains a slightly simpler method of exposing the bug.

Also, I know this was for testing, but you should never redefine your own M_ routines. Those M_ constants can change at any time. I just don't want others to see the example and think that's the proper way of doing it.

You should:

include euphoria/info.e 
 
? start_time() 

Jeremy

new topic     » goto parent     » topic index » view message » categorize

3. Re: atom equal sequence

jeremy said...

I created a ticket for this: ticket:316. It contains a slightly simpler method of exposing the bug.

I added a few new tests based on that. I've fixed the bug, but I'm open to comments on better ways to fix it.

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu