If I wanted to make Foo serializable, how would I implement each and add? The types overlap between thing2 and thing1, and iterating over thing1 only touches the Ints. Is it possible?
Setting collection=true is just for pretty printing your string when your class doesn't contain anything else.
detroitmattTue 19 Jun 2012
Well that's easy (but that seems to be the slogan for Fantom). Thanks! Odd that we'd have the ability to specify a class as a collection when we don't really have the ability to build new collections (due to the lack of generics).
detroitmatt Tue 19 Jun 2012
If I wanted to make Foo serializable, how would I implement
each
andadd
? The types overlap between thing2 and thing1, and iterating over thing1 only touches the Ints. Is it possible?SlimerDude Tue 19 Jun 2012
And don't bother with
each
oradd
.Setting
collection=true
is just for pretty printing your string when your class doesn't contain anything else.detroitmatt Tue 19 Jun 2012
Well that's easy (but that seems to be the slogan for Fantom). Thanks! Odd that we'd have the ability to specify a class as a collection when we don't really have the ability to build new collections (due to the lack of generics).