Struct.new(nil, :foo) doesn't work for creating anonymous structs
-----------------------------------------------------------------

                 Key: JRUBY-1179
                 URL: http://jira.codehaus.org/browse/JRUBY-1179
             Project: JRuby
          Issue Type: Bug
          Components: Core Classes/Modules
    Affects Versions: JRuby 1.0.0
            Reporter: Charles Oliver Nutter
            Assignee: Charles Oliver Nutter
             Fix For: JRuby 1.1.0


You should be able to use Struct.new(nil, ... to create an anonymous open 
struct. We try to use the first param as part of the struct's symbols any time 
it's not a string, resulting in a warning and struct weirdness.

-- 
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

        

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply via email to