#407: NSData#bytes does not work
---------------------------------+------------------------------------------
Reporter: neerac...@… | Owner: lsansone...@…
Type: defect | Status: new
Priority: major | Milestone:
Component: MacRuby | Keywords:
---------------------------------+------------------------------------------
MacRuby rev 2903.
---------------- Code ------------
framework 'Cocoa'
d = "xy".dataUsingEncoding(NSMacOSRomanStringEncoding)
d.bytes
---------------------------------
Expected to get some byteptr class, as I did in RubyCocoa. Got an error:
Assertion failed: (ValueType->getTypeID() != VoidTyID && "Pointer to void
is not valid, use i8* instead!"), function get, file Type.cpp, line 931.
--
Ticket URL: <http://www.macruby.org/trac/ticket/407>
MacRuby <http://macruby.org/>
_______________________________________________
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel