[MacRuby-devel] [macruby] #107: array arguments raise ArgumentError
macruby
ruby-noreply at macosforge.org
Fri Aug 22 00:00:36 PDT 2008
#107: array arguments raise ArgumentError
-------------------------------+--------------------------------------------
Reporter: toast at drtoast.com | Owner: lsansonetti at apple.com
Type: defect | Status: closed
Priority: major | Milestone: MacRuby 0.3
Component: MacRuby | Resolution: fixed
Keywords: |
-------------------------------+--------------------------------------------
Changes (by lsansonetti at apple.com):
* status: new => closed
* resolution: => fixed
* milestone: => MacRuby 0.3
Comment:
Fixed in trunk/r471.
{{{
$ cat /tmp/t.rb
framework 'Cocoa'
colorspace = CGColorSpaceCreateWithName(KCGColorSpaceGenericRGB)
color = CGColorCreate(colorspace,[0.123,0.456,0.789,0.0])
buf = CGColorGetComponents(color)
p buf[0]
p buf[1]
p buf[2]
p buf[3]
$ macruby /tmp/t.rb
0.123000003397465
0.456000000238419
0.788999974727631
0.0
}}}
--
Ticket URL: <http://www.macruby.org/trac/ticket/107#comment:1>
macruby <http://macruby.org/>
More information about the MacRuby-devel
mailing list