[MacRuby] #1488: Pointer#cast! does not accept the alias of Pointer type.
#1488: Pointer#cast! does not accept the alias of Pointer type. ----------------------------------+----------------------------------------- Reporter: watson1978@… | Owner: lsansonetti@… Type: defect | Status: new Priority: major | Milestone: Component: MacRuby | Keywords: ----------------------------------+----------------------------------------- Pointer.new accept the alias of Pointer type. {{{ $ macirb --simple-prompt
Pointer.new('i') => #<Pointer:0x4004a4100> Pointer.new(:int) # alias of 'i' => #<Pointer:0x400777700> }}}
But, Pointer#cast! does not accept. {{{
po = Pointer.new(:int) => #<Pointer:0x400791760> po.cast!(:uint) # alias of 'I' TypeError: can't convert Symbol into String
po.cast!('I') => #<Pointer:0x400791760> po.type => "I" }}}
I think Pointer#cast! should accept the alias. -- Ticket URL: <http://www.macruby.org/trac/ticket/1488> MacRuby <http://macruby.org/>
#1488: Pointer#cast! does not accept the alias of Pointer type. ----------------------------------+----------------------------------------- Reporter: watson1978@… | Owner: lsansonetti@… Type: defect | Status: new Priority: major | Milestone: Component: MacRuby | Keywords: ----------------------------------+----------------------------------------- Comment(by watson1978@…): Fixed with https://github.com/MacRuby/MacRuby/commit/85f0825b40910abcf99578366c48423a84... -- Ticket URL: <http://www.macruby.org/trac/ticket/1488#comment:1> MacRuby <http://macruby.org/>
#1488: Pointer#cast! does not accept the alias of Pointer type. ----------------------------------+----------------------------------------- Reporter: watson1978@… | Owner: lsansonetti@… Type: defect | Status: closed Priority: major | Milestone: Component: MacRuby | Resolution: fixed Keywords: | ----------------------------------+----------------------------------------- Changes (by watson1978@…): * status: new => closed * resolution: => fixed -- Ticket URL: <http://www.macruby.org/trac/ticket/1488#comment:2> MacRuby <http://macruby.org/>
participants (1)
-
MacRuby