Re: [RESEND] Q: Array vs SArray

2004-01-25 Thread Leopold Toetsch
Michael Scott <[EMAIL PROTECTED]> wrote: > So, to go back to Dan's original list, does that give us: > (FixedMixedArray - fixed-size, mixed-type array) > MixedArray - variable-sized, mixed-type array > FixedPMCArray - fixed-size, PMC array > PMCArray - variable-sized, PMC array > FixedStringArr

Re: [RESEND] Q: Array vs SArray

2004-01-25 Thread Gordon Henriksen
On Sunday, January 25, 2004, at 06:10 , Michael Scott wrote: On 25 Jan 2004, at 00:50, Gordon Henriksen wrote: [...] Is there something so terribly wrong with English? How about a general scheme of * ? So, respectively, MixedArray Array FixedArray StringArray FixedStringArray Array is what Per

Re: [RESEND] Q: Array vs SArray

2004-01-25 Thread Michael Scott
On 25 Jan 2004, at 00:50, Gordon Henriksen wrote: [...] Is there something so terribly wrong with English? How about a general scheme of * ? So, respectively, MixedArray Array FixedArray StringArray FixedStringArray Array is what Perl familiars will usually want. Did I miss something? What is A

Re: [RESEND] Q: Array vs SArray

2004-01-24 Thread Gordon Henriksen
On Friday, January 23, 2004, at 11:05 , Tim Bunce wrote: Here's my preference: *) ArrayFLenMixed - fixed-size, mixed-type array *) ArrayVLenPMC- variable-sized PMC array *) ArrayFLenPMC- fixed-size PMC array *) ArrayVLenString - variable-sized string array *) ArrayFLenString -

Re: [RESEND] Q: Array vs SArray

2004-01-23 Thread Tim Bunce
On Fri, Jan 23, 2004 at 02:19:37PM +0100, Michael Scott wrote: > Is there a reason why the names have to be so terse? > > Mutable is not a bad word for able-to-change. (Cribbed from Cocoa, > though there the immutability is absolute). > > *) Array - fixed-size, mixed-type array > *) MutablePArra

Re: [RESEND] Q: Array vs SArray

2004-01-23 Thread Dan Sugalski
At 2:19 PM +0100 1/23/04, Michael Scott wrote: Is there a reason why the names have to be so terse? No, I suppose not. Chalk it up to typing laziness, so the longer names are certainly a viable option. -- Dan --"it's like

Re: [RESEND] Q: Array vs SArray

2004-01-23 Thread Michael Scott
Is there a reason why the names have to be so terse? Mutable is not a bad word for able-to-change. (Cribbed from Cocoa, though there the immutability is absolute). *) Array - fixed-size, mixed-type array *) MutablePArray - variable-sized PMC array *) PArray - Fixed-size PMC array *) MutableSArra

Re: [RESEND] Q: Array vs SArray

2004-01-22 Thread Dan Sugalski
At 2:15 PM -0500 1/21/04, Matt Fowles wrote: All~ So, lets do the classes as: *) Array - fixed-size, mixed-type array *) vPArray - variable-sized PMC array *) PArray - Fixed-size PMC array *) vSArray - variable-sized string array *) SArray - fixed-size string array I suggest using "Array" to mean

Re: [RESEND] Q: Array vs SArray

2004-01-22 Thread Leopold Toetsch
Dan Sugalski <[EMAIL PROTECTED]> wrote: > *) Array - fixed-size, mixed-type array > Personally I'd leave Array as it is, since it does one of the things > that we need it to do. Array isn't really mixed-typed. It has methods to store or retrieve non-PMC types, but they are converted internally t

Re: [RESEND] Q: Array vs SArray

2004-01-21 Thread Leopold Toetsch
Dan Sugalski <[EMAIL PROTECTED]> wrote: > So, lets do the classes as: > *) Array - fixed-size, mixed-type array > *) vPArray - variable-sized PMC array > *) PArray - Fixed-size PMC array > *) vSArray - variable-sized string array > *) SArray - fixed-size string array Actually I forgot one: We alr

Re: [RESEND] Q: Array vs SArray

2004-01-21 Thread Leopold Toetsch
Dan Sugalski <[EMAIL PROTECTED]> wrote: >>4) list.c > If you want to hack in on this, go ahead, though it looks like > something that we'll ultimately need--its the guts of a sparse > mixed-type array, which is useful and we may well need at some point. Actually that was the reason, I implemented

Re: [RESEND] Q: Array vs SArray

2004-01-21 Thread LF
*) Array - fixed-size, mixed-type array *) vPArray - variable-sized PMC array *) PArray - Fixed-size PMC array *) vSArray - variable-sized string array *) SArray - fixed-size string array And so on, for N and I arrays. I'm not particularly attached to the names. (Actually I think they suck, but th

Re: [RESEND] Q: Array vs SArray

2004-01-21 Thread Luke Palmer
Dan Sugalski writes: > At 9:38 AM +0100 1/21/04, Leopold Toetsch wrote: > >Dan Sugalski <[EMAIL PROTECTED]> wrote: > > > >> Okay, at this point we've a pile of different array classes > > > >> Before we go any further we need to figure out what we want. > > > >1) Unify setting/getting element count

Re: [RESEND] Q: Array vs SArray

2004-01-21 Thread Matt Fowles
All~ So, lets do the classes as: *) Array - fixed-size, mixed-type array *) vPArray - variable-sized PMC array *) PArray - Fixed-size PMC array *) vSArray - variable-sized string array *) SArray - fixed-size string array I suggest using "Array" to mean fixed size and "Vector" to mean variable si

Re: [RESEND] Q: Array vs SArray

2004-01-21 Thread Dan Sugalski
At 9:38 AM +0100 1/21/04, Leopold Toetsch wrote: Dan Sugalski <[EMAIL PROTECTED]> wrote: Okay, at this point we've a pile of different array classes Before we go any further we need to figure out what we want. 1) Unify setting/getting element count - the elements() vtable is unused (not acce

Re: [RESEND] Q: Array vs SArray

2004-01-21 Thread Leopold Toetsch
Dan Sugalski <[EMAIL PROTECTED]> wrote: > Okay, at this point we've a pile of different array classes > Before we go any further we need to figure out what we want. 1) Unify setting/getting element count - the elements() vtable is unused (not accessible by opcode) - we use get_integer()

Re: [RESEND] Q: Array vs SArray

2004-01-20 Thread Dan Sugalski
At 2:17 PM +0100 1/11/04, Leopold Toetsch wrote: > One further note, while at Array/PerlArray: the class dependency is suboptimal. PerlArray isa Array isa list. The underlying list is auto-extending and does no bounds checking. Array does bounds-checking. PerlArray doesn't bounds check. So for