H
Hans Fugal
class Sound < NArray
def initialize
puts 'Chunky. Bacon.'
end
end
Sound.new(4,10) #=> Sound.sfloat(10): [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,
0.0, 0.0, 0.0, 0.0 ]
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?
def initialize
puts 'Chunky. Bacon.'
end
end
Sound.new(4,10) #=> Sound.sfloat(10): [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,
0.0, 0.0, 0.0, 0.0 ]
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?