Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsRe: Syntax of iterate operation
https://www.eclipse.org/forums/index.php/mv/msg/165342/523791/#msg_523791
Alas, this seems to be a bug. Could you please file a bug report and use
"for" loops instead of "iterate" until we get this fixed?
Cheers,
Dimitris
Chris Holmes wrote:
> Hi,
> I would like to use the EOL iterate operation on a collection of objects
> of type OrderedSet, however I'm having difficulty understanding the
> syntax of the operation.
>
> e.g.
> var msbs : OrderedSet(Integer) := self.getFields().collect(field |
> field.msb).asOrderedSet();
> var maxMsb : Integer := 0;
> msb := msbs.iterate(msb : Integer; x : Integer = 0 | msb.max(x));
>
> The iterate operation fails to parse, although I think this conforms to
> the format identified in the Epsilon book. This form also fails to parse:
> msb := msbs.iterate(msb; x=0 | msb.max(x));
>
> I'm obviously doing something daft, can someone correct my mistake?
>
> Regards
> Chris
--
Spread the word: http://www.eclipse.org/gmt/epsilon/spreadtheword
Follow Epsilon on Twitter: http://twitter.com/epsilonews]]>Dimitrios Kolovos2010-03-29T06:18:10-00:00Syntax of iterate operation
https://www.eclipse.org/forums/index.php/mv/msg/165342/523789/#msg_523789
Originally posted by: c.k.holmes.lboro.ac.uk
Hi,
I would like to use the EOL iterate operation on a collection of objects
of type OrderedSet, however I'm having difficulty understanding the
syntax of the operation.
e.g.
var msbs : OrderedSet(Integer) := self.getFields().collect(field |
field.msb).asOrderedSet();
var maxMsb : Integer := 0;
msb := msbs.iterate(msb : Integer; x : Integer = 0 | msb.max(x));
The iterate operation fails to parse, although I think this conforms to
the format identified in the Epsilon book. This form also fails to parse:
msb := msbs.iterate(msb; x=0 | msb.max(x));
I'm obviously doing something daft, can someone correct my mistake?
Regards
Chris]]>2010-03-29T10:54:08-00:00Re: Syntax of iterate operation
https://www.eclipse.org/forums/index.php/mv/msg/165342/587870/#msg_587870
Alas, this seems to be a bug. Could you please file a bug report and use
"for" loops instead of "iterate" until we get this fixed?
Cheers,
Dimitris
Chris Holmes wrote:
> Hi,
> I would like to use the EOL iterate operation on a collection of objects
> of type OrderedSet, however I'm having difficulty understanding the
> syntax of the operation.
>
> e.g.
> var msbs : OrderedSet(Integer) := self.getFields().collect(field |
> field.msb).asOrderedSet();
> var maxMsb : Integer := 0;
> msb := msbs.iterate(msb : Integer; x : Integer = 0 | msb.max(x));
>
> The iterate operation fails to parse, although I think this conforms to
> the format identified in the Epsilon book. This form also fails to parse:
> msb := msbs.iterate(msb; x=0 | msb.max(x));
>
> I'm obviously doing something daft, can someone correct my mistake?
>
> Regards
> Chris
--
Spread the word: http://www.eclipse.org/gmt/epsilon/spreadtheword
Follow Epsilon on Twitter: http://twitter.com/epsilonews]]>Dimitrios Kolovos2010-03-29T11:11:28-00:00Re: Syntax of iterate operation
https://www.eclipse.org/forums/index.php/mv/msg/165342/523795/#msg_523795
Originally posted by: c.k.holmes.lboro.ac.uk
Hi Dimitris,
OK, will do.
Best Wishes
Chris
Dimitris Kolovos wrote:
> Hi Chris,
>
> Alas, this seems to be a bug. Could you please file a bug report and use
> "for" loops instead of "iterate" until we get this fixed?
>
> Cheers,
> Dimitris
>
> Chris Holmes wrote:
>> Hi,
>> I would like to use the EOL iterate operation on a collection of
>> objects of type OrderedSet, however I'm having difficulty
>> understanding the syntax of the operation.
>>
>> e.g.
>> var msbs : OrderedSet(Integer) := self.getFields().collect(field |
>> field.msb).asOrderedSet();
>> var maxMsb : Integer := 0;
>> msb := msbs.iterate(msb : Integer; x : Integer = 0 | msb.max(x));
>>
>> The iterate operation fails to parse, although I think this conforms
>> to the format identified in the Epsilon book. This form also fails to
>> parse:
>> msb := msbs.iterate(msb; x=0 | msb.max(x));
>>
>> I'm obviously doing something daft, can someone correct my mistake?
>>
>> Regards
>> Chris
>
>]]>2010-03-29T11:35:02-00:00Re: Syntax of iterate operation
https://www.eclipse.org/forums/index.php/mv/msg/165342/587883/#msg_587883
Originally posted by: c.k.holmes.lboro.ac.uk
Hi Dimitris,
OK, will do.
Best Wishes
Chris
Dimitris Kolovos wrote:
> Hi Chris,
>
> Alas, this seems to be a bug. Could you please file a bug report and use
> "for" loops instead of "iterate" until we get this fixed?
>
> Cheers,
> Dimitris
>
> Chris Holmes wrote:
>> Hi,
>> I would like to use the EOL iterate operation on a collection of
>> objects of type OrderedSet, however I'm having difficulty
>> understanding the syntax of the operation.
>>
>> e.g.
>> var msbs : OrderedSet(Integer) := self.getFields().collect(field |
>> field.msb).asOrderedSet();
>> var maxMsb : Integer := 0;
>> msb := msbs.iterate(msb : Integer; x : Integer = 0 | msb.max(x));
>>
>> The iterate operation fails to parse, although I think this conforms
>> to the format identified in the Epsilon book. This form also fails to
>> parse:
>> msb := msbs.iterate(msb; x=0 | msb.max(x));
>>
>> I'm obviously doing something daft, can someone correct my mistake?
>>
>> Regards
>> Chris
>
>]]>2010-03-29T11:35:02-00:00