logo       

[jira] Commented: (BOO-498) CollectionAttribute + value type = madness: msg#00105

lang.boo.devel

Subject: [jira] Commented: (BOO-498) CollectionAttribute + value type = madness

[ http://jira.codehaus.org/browse/BOO-498?page=comments#action_47272 ]

Arron Washington commented on BOO-498:
--------------------------------------

Come to think of it, I'm not sure I like the way CollectionAttribute works.

Would anyone mind if I offered up another attribute with the same purpose to
'depreciate' CollectionAttribtue? I need something a bit stronger than what
CollectionAttribute provides, anyway, and I might as well share.

> CollectionAttribute + value type = madness
> ------------------------------------------
>
> Key: BOO-498
> URL: http://jira.codehaus.org/browse/BOO-498
> Project: Boo
> Type: Bug
> Components: Boo.Lang.Useful
> Versions: 0.6
> Reporter: Arron Washington
> Fix For: 0.7

>
>
> The CollectionAttribute (or perhaps AbstractAttribute) appears to be using
> "is" for comparisons, and of course that does not work for value types.
> I'm not familiar with the underpinnings of the code, but it should probably
> invoke the Equals member instead of doing an "is" comparison.
> Sample:
> import Useful.Collections from 'Boo.Lang.Useful'
> [Collection(int)]
> class collect:
> pass

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira




<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise