RFC: Breaking existing Euphoria functionality

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

Has anybody written a statement like this:

result = ({'a','b','c'} = {'a','b','f'})

and expected result to look like this:

? result
{1,1,0}?

Is there any code in the archives or recent user contributions (say less than
3 years old) that takes advantage of this functionality?

I would like to change binary_ops() in be_runtime.c so that the result of
comparing two sequences with an operator (=,<,>,<=,>=,!=) returns a single
boolean rather than a sequence of booleans.  The benefit to this change 
would allow sequences to be compared in an if or while statement without
requiring compare or equal.  The drawback is breaking existing functionality.
I expect the performance hit to be negligible.

Michael J. Sabal

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

Search



Quick Links

User menu

Not signed in.

Misc Menu