Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMT (Generative Modeling Technologies) » [Epsilon] String wrapping under -> and .
[Epsilon] String wrapping under -> and . [message #383596] Thu, 15 May 2008 12:58 Go to next message
Aleksander Bandelj is currently offline Aleksander Bandelj
Messages: 98
Registered: July 2009
Member
There is a strange difference how PointExecutor and ArrowExecutor treat
Strings. For example:

var colorNames:=Sequence {'white', 'green', 'yellow', 'orange', 'red'};

colorNames->indexOf('red').println(); -- Java String, identity
comparison, prints -1
colorNames.indexOf('red').println(); -- EOLString, equality comparison,
prints 4


-a
Re: [Epsilon] String wrapping under -> and . [message #383598 is a reply to message #383596] Thu, 15 May 2008 14:00 Go to previous messageGo to next message
Dimitrios Kolovos is currently offline Dimitrios Kolovos
Messages: 1776
Registered: July 2009
Senior Member
Hi Aleksander,

Could you please open a bug report for this? I'll investigate asap and
get back to you.

Cheers,
Dimitrios

Aleksander Bandelj wrote:
> There is a strange difference how PointExecutor and ArrowExecutor treat
> Strings. For example:
>
> var colorNames:=Sequence {'white', 'green', 'yellow', 'orange', 'red'};
>
> colorNames->indexOf('red').println(); -- Java String, identity
> comparison, prints -1
> colorNames.indexOf('red').println(); -- EOLString, equality comparison,
> prints 4
>
>
> -a
Re: [Epsilon] String wrapping under -> and . [message #383601 is a reply to message #383598] Fri, 16 May 2008 16:19 Go to previous message
Dimitrios Kolovos is currently offline Dimitrios Kolovos
Messages: 1776
Registered: July 2009
Senior Member
Hi Aleksander,

Thanks for reporting this! I've located the bug and fixed it in the CVS.
We'll release the next version (1.3.4) and close the bug report
(https://bugs.eclipse.org/bugs/show_bug.cgi?id=232457) shortly.

Cheers,
Dimitrios

Dimitrios Kolovos wrote:
> Hi Aleksander,
>
> Could you please open a bug report for this? I'll investigate asap and
> get back to you.
>
> Cheers,
> Dimitrios
>
> Aleksander Bandelj wrote:
>> There is a strange difference how PointExecutor and ArrowExecutor
>> treat Strings. For example:
>>
>> var colorNames:=Sequence {'white', 'green', 'yellow', 'orange', 'red'};
>>
>> colorNames->indexOf('red').println(); -- Java String, identity
>> comparison, prints -1
>> colorNames.indexOf('red').println(); -- EOLString, equality
>> comparison, prints 4
>>
>>
>> -a
Re: [Epsilon] String wrapping under -> and . [message #617636 is a reply to message #383596] Thu, 15 May 2008 14:00 Go to previous message
Dimitrios Kolovos is currently offline Dimitrios Kolovos
Messages: 1776
Registered: July 2009
Senior Member
Hi Aleksander,

Could you please open a bug report for this? I'll investigate asap and
get back to you.

Cheers,
Dimitrios

Aleksander Bandelj wrote:
> There is a strange difference how PointExecutor and ArrowExecutor treat
> Strings. For example:
>
> var colorNames:=Sequence {'white', 'green', 'yellow', 'orange', 'red'};
>
> colorNames->indexOf('red').println(); -- Java String, identity
> comparison, prints -1
> colorNames.indexOf('red').println(); -- EOLString, equality comparison,
> prints 4
>
>
> -a
Re: [Epsilon] String wrapping under -> and . [message #617640 is a reply to message #383598] Fri, 16 May 2008 16:19 Go to previous message
Dimitrios Kolovos is currently offline Dimitrios Kolovos
Messages: 1776
Registered: July 2009
Senior Member
Hi Aleksander,

Thanks for reporting this! I've located the bug and fixed it in the CVS.
We'll release the next version (1.3.4) and close the bug report
(https://bugs.eclipse.org/bugs/show_bug.cgi?id=232457) shortly.

Cheers,
Dimitrios

Dimitrios Kolovos wrote:
> Hi Aleksander,
>
> Could you please open a bug report for this? I'll investigate asap and
> get back to you.
>
> Cheers,
> Dimitrios
>
> Aleksander Bandelj wrote:
>> There is a strange difference how PointExecutor and ArrowExecutor
>> treat Strings. For example:
>>
>> var colorNames:=Sequence {'white', 'green', 'yellow', 'orange', 'red'};
>>
>> colorNames->indexOf('red').println(); -- Java String, identity
>> comparison, prints -1
>> colorNames.indexOf('red').println(); -- EOLString, equality
>> comparison, prints 4
>>
>>
>> -a
Previous Topic:AM3 Bug?
Next Topic:[MOFScript] java code generation
Goto Forum:
  


Current Time: Fri Jul 25 13:38:59 EDT 2014

Powered by FUDForum. Page generated in 0.03023 seconds