Re: [RFC] some doubtable MMDs?

2005-04-20 Thread Dan Sugalski
At 2:38 PM +0200 4/15/05, Leopold Toetsch wrote: I'm not quite sure, but it seems that some of the MMD functions may better be vtable methods: - bitwise_sh[rl]*shift by anything other then int? - bitwise_lsris missing generally or even just a plain opcode only: - logical_{or,and,xor}

Re: [RFC] some doubtable MMDs?

2005-04-18 Thread Leopold Toetsch
Larry Wall <[EMAIL PROTECTED]> wrote: > On Sun, Apr 17, 2005 at 09:50:28AM +0200, Leopold Toetsch wrote: >: Larry Wall <[EMAIL PROTECTED]> wrote: >: > Is there a bitarray lookup by native int? >: >: Yes. All array lookups support a native int index. > Good, good. Speaking of bitarrays (uint1 in t

Re: [RFC] some doubtable MMDs?

2005-04-17 Thread Larry Wall
On Sun, Apr 17, 2005 at 09:50:28AM +0200, Leopold Toetsch wrote: : Larry Wall <[EMAIL PROTECTED]> wrote: : > Is there a bitarray lookup by native int? : : Yes. All array lookups support a native int index. Good, good. Speaking of bitarrays (uint1 in the Perl panoply of types), is there any built

Re: [RFC] some doubtable MMDs?

2005-04-17 Thread Leopold Toetsch
Larry Wall <[EMAIL PROTECTED]> wrote: > On Sat, Apr 16, 2005 at 10:36:37AM +0200, Leopold Toetsch wrote: >: Above are only the PMC variants. There are optimized forms for array and >: hash lookup by native types: >: >: Px = Py[Iz] >: Px = Py[Sz] > Is there a bitarray lookup by native int? Ye

Re: [RFC] some doubtable MMDs?

2005-04-16 Thread Larry Wall
On Sat, Apr 16, 2005 at 10:36:37AM +0200, Leopold Toetsch wrote: : Larry Wall <[EMAIL PROTECTED]> wrote: : > Perl 6 tends to distinguish these as different operators, though Perl 5 : > did overload the bitwise ops on both strings and numbers, which newbies : > found confusing in ambiguous cases, wh

Re: [RFC] some doubtable MMDs?

2005-04-16 Thread Larry Wall
On Fri, Apr 15, 2005 at 11:11:00PM -0400, Bob Rogers wrote: : By the same token, couldn't one reasonably ask for a boolean array that : required BigInt subscripts, even on said 32-bit machine? (Once boolean : arrays actually store one element per bit, that is.) Or are subscripts : this large rule

Re: [RFC] some doubtable MMDs?

2005-04-16 Thread Leopold Toetsch
Larry Wall <[EMAIL PROTECTED]> wrote: > On Fri, Apr 15, 2005 at 02:38:36PM +0200, Leopold Toetsch wrote: >: I'm not quite sure, but it seems that some of the MMD functions may >: better be vtable methods: >: >: - bitwise_sh[rl]*shift by anything other then int? >: - bitwise_lsris missin

Re: [RFC] some doubtable MMDs?

2005-04-15 Thread Bob Rogers
From: Larry Wall <[EMAIL PROTECTED]> Date: Fri, 15 Apr 2005 12:52:53 -0700 On Fri, Apr 15, 2005 at 02:38:36PM +0200, Leopold Toetsch wrote: : I'm not quite sure, but it seems that some of the MMD functions may : better be vtable methods: : : - bitwise_sh[rl]*shift by any

Re: [RFC] some doubtable MMDs?

2005-04-15 Thread Larry Wall
On Fri, Apr 15, 2005 at 02:38:36PM +0200, Leopold Toetsch wrote: : I'm not quite sure, but it seems that some of the MMD functions may : better be vtable methods: : : - bitwise_sh[rl]*shift by anything other then int? : - bitwise_lsris missing generally : : or even just a plain opcod

[RFC] some doubtable MMDs?

2005-04-15 Thread Leopold Toetsch
I'm not quite sure, but it seems that some of the MMD functions may better be vtable methods: - bitwise_sh[rl]*shift by anything other then int? - bitwise_lsris missing generally or even just a plain opcode only: - logical_{or,and,xor} return a PMC depending on the boolean value What