Well, the infrastructure, API, and protocols are in. Parrot can now automatically wrap most any C library, generating shims that look like regular parrot subs to parrot, but call into the library for you. Which means that, if you've set things up right, you can do:
loadlib P1, "sdl"
dlfunc P0, P1, "SDL_Init", "ii"
set I5, 255
invoke
unless I5, OK
hcf "SDL_Init failed!"
OK:
print "SDL_Init worked just fine"
exit
Well, OK, except for the hcf part, since exceptions aren't in yet. Soon, though...
--Nat
Re:Schwing!
Elian on 2002-11-26T05:22:56
Heh. Might be a while. Shoudn't be a problem to subclass a Parrot object from Objective-C, or vice versa, though.