On Wed, 2004-04-28 at 03:06, Leopold Toetsch wrote: > Not very wrong, but ... Anyway the syntax is: > > Px["Rect"; 0; "x"] # rect[0].x named access of "Rect" > Px[ 0 ; 2; "h"] # rect[2].h idx > > Constructions differs too. > Please have a look at the test.
Ahh, that makes sense after squinting the right way for a minute. I've updated my SDL Parrot snapshot; the working code is now in SDL::Surface::update_rects(). http://wgz.org/chromatic/parrot/sdl/ Building the array of rects is a little cumbersome, but now it's nicely encapsulated where I don't have to think about it. Thanks, Leo! -- c