More questions for the compiler FAQ...

2005-01-15 Thread William Coleda
Is it possible to: 1) define methods for a PMC/Object in C that aren't vtable methods? How? 2) call subroutines defined in bytecode from C? How?

Re: compiler-faq

2004-05-31 Thread Leopold Toetsch
William Coleda wrote: I think it's worth mentioning C<.flatten_arg> in the first answer, and the wording of the second answer needs a bit more explanation, perhaps: Added a C<.flatten_arg> examples as well as your C snippets from the previous mail. Thanks, leo

Re: compiler-faq

2004-05-31 Thread William Coleda
I should have said there was no I PIR syntax help =-). I found a test for C<.flatten_arg> after I saw it on the list, but it wasn't in the IMCC docs. That would have saved me some time... (That wording, btw, wasn't in there when I wrote my version. Must have missed a sync) I'm an edge case becaus

Re: compiler-faq

2004-05-30 Thread Sterling Hughes
Leopold Toetsch wrote: William Coleda <[EMAIL PROTECTED]> wrote: I was going to submit this as a patch, but I ended up with a conflict, and Dan threatened he wouldn't apply it anyway, so I'll just post it here for comment. Feel free to apply any or all of it. I would be very happy to hear of a be

Re: compiler-faq

2004-05-30 Thread TOGoS
> Your answer is about compiling a subroutine that > does something. What's wrong with the current wording: > > How do I generate a sub call with a > variable-length parameter list in PIR? > > Use unprototyped calls and functions and pass > as many arguments as you have. Well, for

Re: compiler-faq

2004-05-30 Thread Leopold Toetsch
William Coleda <[EMAIL PROTECTED]> wrote: > I was going to submit this as a patch, but I ended up with a conflict, > and Dan threatened he wouldn't apply it anyway, so I'll just post it > here for comment. Feel free to apply any or all of it. I would be very > happy to hear of a better way to ans

Re: compiler-faq

2004-05-29 Thread Steve Fink
On May-29, Brent 'Dax' Royal-Gordon wrote: > William Coleda wrote: > >=head2 How do I generate a sub call with a variable-length parameter > >list in PIR? > > > >This is currently not trivial. > ... > >=head2 How do I retrieve the contents of a variable-length parameter > >list being passed to m

Re: compiler-faq

2004-05-29 Thread Brent 'Dax' Royal-Gordon
William Coleda wrote: =head2 How do I generate a sub call with a variable-length parameter list in PIR? This is currently not trivial. ... =head2 How do I retrieve the contents of a variable-length parameter list being passed to me? The easiest way to do this is to use the C opcode to take a

compiler-faq

2004-05-29 Thread William Coleda
I was going to submit this as a patch, but I ended up with a conflict, and Dan threatened he wouldn't apply it anyway, so I'll just post it here for comment. Feel free to apply any or all of it. I would be very happy to hear of a better way to answer the first question. =-) --- =head2 How do I

Re: [perl #29674] [PATCH] Compiler FAQ: lexicals + stuff

2004-05-18 Thread chromatic
On Mon, 2004-05-17 at 19:40, TOGoS wrote: > This patch adds an extensive answer to "what's with > lexical pads?", and simple answers to "how do i call a > function?". It also adds several questions regarding > object methods and attributes, and manages to answer > one of them. Thanks, I'll apply

[perl #29674] [PATCH] Compiler FAQ: lexicals + stuff

2004-05-18 Thread via RT
# New Ticket Created by TOGoS # Please include the string: [perl #29674] # in the subject line of all future correspondence about this issue. # http://rt.perl.org:80/rt3/Ticket/Display.html?id=29674 > This patch adds an extensive answer to "what's with lexical pads?", and simple answers to "h

Re: [perl #29517] [PATCH] clean up compiler FAQ

2004-05-12 Thread Dan Sugalski
At 2:33 PM -0700 5/11/04, TOGoS (via RT) wrote: # New Ticket Created by TOGoS # Please include the string: [perl #29517] # in the subject line of all future correspondence about this issue. # http://rt.perl.org:80/rt3/Ticket/Display.html?id=29517 > There were 2 simultaneous patches and it got ful

[perl #29517] [PATCH] clean up compiler FAQ

2004-05-12 Thread via RT
# New Ticket Created by TOGoS # Please include the string: [perl #29517] # in the subject line of all future correspondence about this issue. # http://rt.perl.org:80/rt3/Ticket/Display.html?id=29517 > There were 2 simultaneous patches and it got full of diff garbage. This will clean it back u