1. atom equal sequence
- Posted by Thomas Nov 03, 2010
- 1355 views
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
2. Re: atom equal sequence
- Posted by jeremy (admin) Nov 03, 2010
- 1338 views
- Last edited Nov 04, 2010
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
3. Re: atom equal sequence
- Posted by jimcbrown (admin) Nov 04, 2010
- 1314 views
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.