On 11/12/01 08:26 -0800, Nathan Lewis wrote: > Still, to argue the case a little more. Isn't Inline's > goal to shelter young, innocent programmers from the > evils of XS programming? Wouldn't it be possible to do > so by scanning the input source and renaming anything > whose name would collide with an XS macro? > > It would probably be very easy to get a London perl > monger to volunteer if you allowed them to rename any > thing that collided with an XS macro to "Buffy" :-)
This is problematic because it requires a full parse of C to determine what words are variable names and which might be parts of comments or strings. I doubt that I will be able to pull that off in a way that would be a guaranteed success. I do have some things along these lines planned for a later release though. In the mean time I think doc is the best way to tackle this issue. > > Anyway, I also have another question: > Is it possible to raise exceptions to perl from within > your C code? Look up the croak() function in 'perldoc perlapi'. Cheers, Brian
