I’m not sure why this is, but I bet it has something to do with the way
NArray is implemented in C. That’s keen, but I’d really like to
override new (I’d do something more useful than above, I promise).
Overriding other methods of NArray is no problem. Is there any hope?
I’m not sure why this is, but I bet it has something to do with the way
NArray is implemented in C. That’s keen, but I’d really like to
override new (I’d do something more useful than above, I promise).
Overriding other methods of NArray is no problem. Is there any hope?
Never used NArray before, but try calling super() with the args you’d
normally
give an NArray if it wasn’t a Sound so that NArray’s initialize method
gets
called.
Never used NArray before, but try calling super() with the args you’d
normally give an NArray if it wasn’t a Sound so that NArray’s
initialize method gets called.
Yup, I do want to call super. My example was contrived such as to make
it painfully obvious that even if you don’t call super, NArray’s
initialize gets magically called instead of the subclass’s.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.