|
[jira] Commented: (BOO-498) CollectionAttribute + value type = madness: msg#00105lang.boo.devel
[ 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> |
|---|---|---|
| Previous by Date: | [jira] Created: (BOO-498) CollectionAttribute + value type = madness, Arron Washington (JIRA) |
|---|---|
| Next by Date: | Dropping BeginInvoke overloads, Rodrigo B. de Oliveira |
| Previous by Thread: | [jira] Created: (BOO-498) CollectionAttribute + value type = madness, Arron Washington (JIRA) |
| Next by Thread: | Dropping BeginInvoke overloads, Rodrigo B. de Oliveira |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |