Re: Opcodes (was Re: The external interface for the parser piece)

2000-12-12 Thread David Mitchell
On Thu, 07 Dec 2000, Dan Sugalski <[EMAIL PROTECTED]> mused: > >My original suggestion was that scalar types provide a method that says > >how 'big' it is (so complex > bigreal > real > int etc), > >and pp_add(), pp_sub() etc use these values to call the method associated > >with the biggest oper

Re: Opcodes (was Re: The external interface for the parser piece)

2000-12-12 Thread Nicholas Clark
On Tue, Dec 12, 2000 at 02:20:44PM +, David Mitchell wrote: > If we assume that ints and nums are perl builtins, and that some people > have implemented the following external types: byte (eg as implemented > as a specialised array type), bigreal, complex, bigcomplex, bigrat, > quaternian; the

Re: Opcodes (was Re: The external interface for the parser piece)

2000-12-12 Thread David Mitchell
Nicholas Clark <[EMAIL PROTECTED]> wrote: > On Tue, Dec 12, 2000 at 02:20:44PM +, David Mitchell wrote: > > If we assume that ints and nums are perl builtins, and that some people > > have implemented the following external types: byte (eg as implemented > > as a specialised array type), bigre

Re: Opcodes (was Re: The external interface for the parser piece)

2000-12-12 Thread Nick Ing-Simmons
David Mitchell <[EMAIL PROTECTED]> writes: > >I think this this boils down to 2 important questions, and I'd be interested in >hearing people's opinions of them. > >1. Does the Perl 6 language require some explicit syntax and/or semnatics to >handle multiple and user-defined numeric types? >Eg "my

rfc 21 Replace wantarray with a generic want function

2000-12-12 Thread Nicholas Clark
In "Listing of possible context combinations:" there is (SCALAR, 1, LVALUE)func() = $x; shouldn't there also be (LIST, ~0, LVALUE) func() = @x; I can't find any discussion of this part in the archives, so I hope I'm no

Re: Opcodes (was Re: The external interface for the parser piece)

2000-12-12 Thread Nicholas Clark
On Tue, Dec 12, 2000 at 06:05:30PM +, David Mitchell wrote: > Nicholas Clark <[EMAIL PROTECTED]> wrote: > > On Tue, Dec 12, 2000 at 02:20:44PM +, David Mitchell wrote: > > > If we assume that ints and nums are perl builtins, and that some people > > > have implemented the following externa