Re: [perl #38931] [RFE] Double-quoted strings automatically determine string type

2006-04-17 Thread Larry Wall
On Mon, Apr 17, 2006 at 01:52:43PM +0200, Leopold Toetsch wrote: : : On Apr 17, 2006, at 0:02, Nicholas Clark wrote: : : >I think Dan was thinking that internally everything should be fixed : >width, : >and for practical reasons pick the smallest of 8 bit, UCS-16 and UCS-32 : >internally. Conver

Re: Namespace bug?

2006-04-17 Thread Chip Salzenberg
On Tue, Apr 18, 2006 at 01:15:45AM +0200, Leopold Toetsch wrote: > Yeah. Many thanks for the 'easy workaround.' > This is fixed now in r12310. Thanks. -- Chip Salzenberg <[EMAIL PROTECTED]>

Re: Namespace bug?

2006-04-17 Thread Leopold Toetsch
On Apr 18, 2006, at 0:09, Chip Salzenberg wrote: On Mon, Apr 17, 2006 at 11:57:43PM +0200, Leopold Toetsch wrote: The problem here is the ':anon' sub. It doesn't have a name, so it isn't stored in any namespace. Now executing this sub doesn't set the default namespace to 'eek' either. Therefor

Re: Namespace bug?

2006-04-17 Thread Chip Salzenberg
On Mon, Apr 17, 2006 at 11:57:43PM +0200, Leopold Toetsch wrote: > The problem here is the ':anon' sub. It doesn't have a name, so it > isn't stored in any namespace. Now executing this sub doesn't set the > default namespace to 'eek' either. Therefore the symbol '$whee' ends up > in the default

Re: Namespace bug?

2006-04-17 Thread Leopold Toetsch
On Apr 17, 2006, at 23:33, Will Coleda wrote: Not sure if this is a bug or a misunderstanding on my part wrt the current namespace situation. I expect this to print out the number 3.14. (This is a very pared down version of what Tcl in my sandbox is currently trying to do, going between 'Tc

Namespace bug?

2006-04-17 Thread Will Coleda
Not sure if this is a bug or a misunderstanding on my part wrt the current namespace situation. I expect this to print out the number 3.14. (This is a very pared down version of what Tcl in my sandbox is currently trying to do, going between 'Tcl' and '_Tcl'. $ cat foo.pir .HLL 'cromulent

[svn:parrot-pdd] r12290 - trunk/docs/pdds

2006-04-17 Thread coke
Author: coke Date: Mon Apr 17 08:44:43 2006 New Revision: 12290 Modified: trunk/docs/pdds/pdd21_namespaces.pod Log: fix docu typo Modified: trunk/docs/pdds/pdd21_namespaces.pod == --- trunk/docs/pdds/pdd21_namespace

[svn:parrot-pdd] r12289 - trunk/docs/pdds

2006-04-17 Thread chip
Author: chip Date: Mon Apr 17 08:35:24 2006 New Revision: 12289 Modified: trunk/docs/pdds/pdd21_namespaces.pod Log: Rename name() method to get_name() for consistency and to allow for eventual possibility of set_name(). Modified: trunk/docs/pdds/pdd21_namespaces.pod ==

Re: Namespaces TODO list, April 16 '06

2006-04-17 Thread Chip Salzenberg
On Mon, Apr 17, 2006 at 04:44:10PM +0200, Leopold Toetsch wrote: > Thinking a bit more about it (and discussing this issue with pmichaud) > on #parrot - it seems that we really want hierarchical class names too, > the more that a Perl6 class isa NameSpace too. > > That means: > > * newclass, su

Namespaces TODO list, April 17 '06 addenda

2006-04-17 Thread Chip Salzenberg
TODOs, part 2 ("todenda"?): [[ NAMESPACE PMC ]] * The .name() method is being renamed to get_name() for consistency, and to allow for the possibility of set_name(). * The return value of .get_name(), the parameter to .get_namespace(), and the parameter to the get_namespace opcode should al

Re: Namespaces TODO list, April 16 '06

2006-04-17 Thread Leopold Toetsch
chromatic wrote: What should the syntax for creating new objects be? That is, if I define an object with its methods in the namespace [ 'PAST'; 'Node' ], how do I create a new instance of that class? .local pmc node node = new ??? Thinking a bit more about it (and discussin

[svn:parrot-pdd] r12286 - trunk/docs/pdds

2006-04-17 Thread particle
Author: particle Date: Mon Apr 17 06:40:33 2006 New Revision: 12286 Modified: trunk/docs/pdds/pdd21_namespaces.pod Log: [PDD21] remove redundant 'end' from PIR examples Modified: trunk/docs/pdds/pdd21_namespaces.pod =

Re: Variable-length PMC - level of need

2006-04-17 Thread Leopold Toetsch
On Apr 17, 2006, at 1:34, Chip Salzenberg wrote: But: I see extensive use of PMC_(struct|pmc|int|num|str)_val() in *.pmc. Sure. There are just these 1 or 2 data items in the PMC and these are of course heavily used. But e.g. a ResizableArray would need 3 items: n_first_elem, n_elements,

Re: Namespaces TODO list, April 16 '06

2006-04-17 Thread Leopold Toetsch
On Apr 17, 2006, at 8:02, chromatic wrote: What should the syntax for creating new objects be? That is, if I define an object with its methods in the namespace [ 'PAST'; 'Node' ], how do I create a new instance of that class? .local pmc node node = new ??? .namespace ['PAS

Re: [perl #38931] [RFE] Double-quoted strings automatically determine string type

2006-04-17 Thread Leopold Toetsch
On Apr 17, 2006, at 0:02, Nicholas Clark wrote: I think Dan was thinking that internally everything should be fixed width, and for practical reasons pick the smallest of 8 bit, UCS-16 and UCS-32 internally. Convert variable width to fixed width (losslessly) the first time you need to do anyt