Re: RFC: Breaking existing Euphoria functionality
Derek Parnell wrote:
>
> if XYZ < ABC then
>
> should be viewed as a comparision and not a sequence operation.
>
> However ...
>
> DEF = (XYZ < ABC)
>
> should be a sequence operation (then an assignment) because it is not in the
> context of a conditional statement ('if', 'while' ...)
>
The source is currently written to evaluate the comparison first, regardless
of context, then execute the context. In order to do what you are suggesting,
the parser would need to assign separate opcodes (which do not currently
exist) for a comparison in if/while than for one in an assignment.
Based on yours and other comments in this thread, it seems the community is
rather opposed to this modification. Therefore, I am reducing your
feature request on Sourceforge to the bottom of the queue. Feel free to
take these notes and work out the solution on your own. Perhaps you'll be
able to see an elegant solution that pleases most where I cannot.
Michael J. Sabal
|
Not Categorized, Please Help
|
|