Re: NCI and callback functions

2004-08-18 Thread Leopold Toetsch
Stephane Peiry [EMAIL PROTECTED] wrote: ow.. ok, this one is actaully a macro.. the actual function is gulong g_signal_connect_object (gpointer instance, const gchar *detailed_signal, GCallback c_handler,

Re: [perl #31138] [TODO] Configure - dependencies fix

2004-08-18 Thread mAsterdam
Simon Wistow wrote: Leopold Toetsch said: Rather not. Python is AFAIK not as portable as Perl. But there is a Perl based make somewhere, the named just escaped my mind. It's called Cons. I can't remember whether Cons or Scons came first (ah, Cons was the orginal

Re: Another small C task

2004-08-18 Thread Dan Sugalski
At 12:40 PM -0400 8/16/04, Dan Sugalski wrote: I should [TODO] this, but I think it might get lost in the recent blast 'o TODO items. (All of which I'd be thrilled if someone took on. A big thanks to Will for diving into the queue and website and getting things in a semblance of order) This

Re: Popping an empty stack

2004-08-18 Thread Dan Sugalski
At 5:53 PM -0700 8/17/04, Brent 'Dax' Royal-Gordon wrote: Michel Pelletier [EMAIL PROTECTED] wrote: if Perl or other languages want an undef returned, it would seem to make more sense that they assume to cost of catching the exception and turning it into an undef, than everyone else turning the

Re: Something to ponder

2004-08-18 Thread Dan Sugalski
At 6:20 PM -0400 8/17/04, Aaron Sherman wrote: On Tue, 2004-08-17 at 16:22, Felix Gallo wrote: On Tue, Aug 17, 2004 at 04:08:34PM -0400, Dan Sugalski wrote: 1) We're going to have MMD for functions soon 2) Function invocation and return continuation invocation's essentially identical 3)

Re: Functions for embedders to override

2004-08-18 Thread Tim Bunce
On Wed, Aug 11, 2004 at 01:10:42AM -0400, Dan Sugalski wrote: A good place to look at for the complete list is Perl 5's system abstraction layer. Yeah. If you've got time to get a list I'd very much appreciate it. http://search.cpan.org/src/NWCLARK/perl-5.8.5/iperlsys.h Tim.

Re: [perl #31138] [TODO] Configure - dependencies fix

2004-08-18 Thread Dave Whipp
Leopold Toetsch [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Rather not. Python is AFAIK not as portable as Perl. But there is a Perl based make somewhere, the named just escaped my mind. We use Makepp (http://makepp.sourceforge.net/) here. Written in Perl, its particular strength

Re: Something to ponder

2004-08-18 Thread Aaron Sherman
On Wed, 2004-08-18 at 10:06, Dan Sugalski wrote: Yep, though the error dispatch case is definitely the easy one. Where it gets fun is: sub foo :come_from('bar', int) { You've created an MMD come-from Uh... that hurts. I think using it for type-based, switch-like dispatch would be

[Fwd: Re: Something to ponder]

2004-08-18 Thread Aaron Sherman
This bit comes from the p6i list, and I just thought I'd ask those in-the-know if my suggested returntype role/property would make sense here, or if there's another way to do it that makes more sense? For that matter, does MMD on return type map into Perl6's gestalt at all, or would it be

Re: [Fwd: Re: Something to ponder]

2004-08-18 Thread Dan Hursh
Aaron Sherman wrote: This bit comes from the p6i list, and I just thought I'd ask those in-the-know if my suggested returntype role/property would make sense here, or if there's another way to do it that makes more sense? For that matter, does MMD on return type map into Perl6's gestalt at all, or

Re: [Fwd: Re: Something to ponder]

2004-08-18 Thread Larry Wall
I think this is something the optimizer could use to eliminate an ordinary return that happens to be followed by a call to a known set of something elses. So it might well help things like switch statements and cascaded function calls and tail recursion (and maybe invocation of autoloaded

Re: NCI and callback functions

2004-08-18 Thread Stephane Peiry
On Wed, Aug 18, 2004 at 09:11:17AM +0200, Leopold Toetsch wrote: You've mixed up the function parameters. P0 = global Gtk::gtk_window_new null I5 invoke P15 = P5 I presume that's instance ... actually shouldnt the callback is for the button # -- function sig is

Re: Something to ponder

2004-08-18 Thread Aaron Sherman
On Wed, 2004-08-18 at 15:57, Felix Gallo wrote: Dan writes: sub foo :come_from('+', int, int) {} One problem with MMD in general, and return specifically, is 'what happens if multiple M match the same D requirements? i.e., That's a question, not a problem. It's easy to answer

Re: Precedence table update

2004-08-18 Thread Larry Wall
On Sat, Aug 14, 2004 at 08:57:21AM -0700, Larry Wall wrote: : You'll also want to make sure the zip operator (¥) gets in there, : probably with the same precedence as == (unless we decide it's : a scalar-only operator, in which case it can be tighter because it : would only work on array refs).

Re: Something to ponder

2004-08-18 Thread Felix Gallo
Aaron writes: Ok, this is starting to look like people speaking seriously about using Intercal's COME FROM (http://c2.com/cgi/wiki?ComeFrom)... can we just step back and take a deep breath of AIR please? Seriously, this is starting to creep me out. In case anyone reading this is getting

Re: Precedence table update

2004-08-18 Thread Juerd
Larry Wall skribis 2004-08-18 15:37 (-0700): It the moment the zipper has moved to be the same precedence as comma, because it really wants to be looser than ranges but tighter than listops. Plus it's sort of like a »,« if you squint. I'm eagerly awaiting my first opportunity to use the »¥«

[perl #31229] [PATCH] Missed pod nit in build_tools/c2str.pl

2004-08-18 Thread via RT
# New Ticket Created by Will Coleda # Please include the string: [perl #31229] # in the subject line of all future correspondence about this issue. # URL: http://rt.perl.org:80/rt3/Ticket/Display.html?id=31229 Index: build_tools/c2str.pl

Re: Something to ponder

2004-08-18 Thread Dan Sugalski
At 3:57 PM -0400 8/18/04, Felix Gallo wrote: Dan writes: sub foo :come_from('+', int, int) {} One problem with MMD in general, and return specifically, is 'what happens if multiple M match the same D requirements? Well... usually what happens is that an ambiguous function error is thrown. I

Re: Synopsis 2 draft 1

2004-08-18 Thread John Williams
On Sat, 14 Aug 2004, Larry Wall wrote: To get a Perlish representation of any data value, use the C.repr method. This will put quotes around strings, square brackets around list values, curlies around hash values, etc., such that standard Perl could reparse the result. XXX .repr is what

Re: Synopsis 2 draft 1

2004-08-18 Thread Larry Wall
On Wed, Aug 18, 2004 at 10:02:57PM -0600, John Williams wrote: : On Sat, 14 Aug 2004, Larry Wall wrote: : To get a Perlish representation of any data value, use the C.repr : method. This will put quotes around strings, square brackets around : list values, curlies around hash values, etc.,

Re: Synopsis 2 draft 1

2004-08-18 Thread David Green
On 8/14/04, [EMAIL PROTECTED] (Larry Wall) wrote: To get a Perlish representation of any data value, use the C.repr method. This will put quotes around strings, square brackets around list values, curlies around hash values, etc., such that standard Perl could reparse the result. XXX .repr is