Re: enum type
- Posted by jimcbrown2 (admin) 1 day ago
- 54 views
It appears 4.1 emits the type routine as a call to find_from() with the literal values. However, 4.2 emits the type routine as a series of equal() or equal() or equal(), etc.
The plot thickens. That's all I can do for now, but I'll revisit this again soon.
-Greg
Hi Greg,
I'm not 100% sure if this is the case, but I compared the tag on github for 4.1.0 (which seems to have been released back sometime in 2014 - man it's been a while) and the current master, https://github.com/OpenEuphoria/euphoria/compare/4.1.0...master
We ... have a lot of changes, to say the least. However, I identified what appears to be an enum related change to the parser around like 3699 of source/parser.e https://github.com/OpenEuphoria/euphoria/blob/master/source/parser.e#L3699
Which lead me to this commit https://github.com/OpenEuphoria/euphoria/commit/1dcfbffbb6b8390aa3753387281f9cfdcb294a7c for this ticket https://openeuphoria.org/ticket/525.wc back in 2015
I don't entirely grok this part of the code, but futher down in that commit I think I see where the find_from in 4.1.0 (see https://github.com/OpenEuphoria/euphoria/blob/4.1.0/source/parser.e#L3469 ) was removed, and where the use of equal() was substituted (see https://github.com/OpenEuphoria/euphoria/blob/master/source/parser.e#L4369 )