On Fri, 4 Oct 2002, Brian Ingerson wrote:
> Mark Fowler wrote:
> > Can we use RT?
>
> Sure. I'm not a big user of RT. I'll accomodate you though. Just let me know
> when you post a bug. (or does rt do that automatically?)
RT notifies the author of the module automatically. You can add anyone
(well anyone with a RT login/CPAN id) as another watcher, and we can add
ourselves too.
> I'll say. You can't do this. Each invocation of Inline creates a shared
> object which then gets loaded. The NAME parameter tells Inline what to
> name the object. In your case it will be 'Foo.so'. But you are trying to
> create two objects with the same name. So the first one is probably
> getting overridden by the second.
Ah. Ooops. That's not good. Maybe we could at least patch
Inline::MakeMaker to detect when it's creating a second inline module of
the same name in the same run (FSVO 'same run') and complain properly at
you at compile time. Keep a global hash of all names we've encountered in
this perl instance and complain if we see the same one twice?
Ideally I'd like to slurp all the inline blocks of the same NAME together
and have them spit out as one object. Does this make sense, or have I
just lost the plot again?
> What to do? Put everything in one! That would be easiest. Use the __C__
> syntax and throw it all down below. I'd be interested in knowing why you want
> 2 objects.
I don't want two objects, I just don't want to seperate out my C code from
my perl code. I want it inline with my inline pod and my inline C. The
module is called Inline not Postline ;-)
> There are a few rules when making Inline modules:
>
> <snip>
>
> Should I put this on the wiki?
I think we should put as much information as possible on the wiki.
Thanks for the help.
Mark.
--
s'' Mark Fowler London.pm Bath.pm
http://www.twoshortplanks.com/ [EMAIL PROTECTED]
';use Term'Cap;$t=Tgetent Term'Cap{};print$t->Tputs(cl);for$w(split/ +/
){for(0..30){$|=print$t->Tgoto(cm,$_,$y)." $w";select$k,$k,$k,.03}$y+=2}