On Wed, Oct 09, 2002 at 01:06:15PM -0700, Brian Ingerson wrote: > ....well maybe not yet. XS is definitely the thing that wouldn't die, but > I think I can put a couple more nails in her coffin. > > I went out to breakfast here in Seattle with my laptop and played around with > Attribute::Handlers. Here's what I came up with:
I can't remember the HHGTG quote offhand, and I'm not online so can't check it easily, but this does sound like "when you've done seven impossible things before breakfast" > This seems to nicely solve all our use cases. One thing to remember is that > symbols aren't loaded (can't be used as barewords) until the end. This is the > same as with the DATA section today. and why not? [you've done so many other crazy impossible things, what's stopping you here] Can't you stub the functions from Inline? ie do perl of the form sub function; If function is ever called AUTOLOADER still kicks in, but now it's in the symbol table, so I believe it's a legitimate bareword. > PS If somebody knows how to do this stuff in 5.6.0 using just > attributes.pm, please speak up. attributes.pod makes my head hurt. as in it works in 5.6.1, but not 5.6.0? You could just say "sorry, doesn't work on 5.6.0" I take it that the basic stuff still works on 5.6.0 (5.6.0 deserves to rest in peace, and Apple really should stop indulging in necromancy) Nicholas Clark -- Even better than the real thing: http://nms-cgi.sourceforge.net/
