RE: [CVS ci] object stuff

2003-12-12 Thread Dan Sugalski
At 3:42 PM -0500 12/11/03, Melvin Smith wrote: At 03:05 PM 12/11/2003 -0500, Gordon Henriksen wrote: Melvin Smith <[EMAIL PROTECTED]> wrote: my $foo = Oracle::Instance::DEV1::db_block_buffers; The namespace lookup in Oracle::Init checks the Oracle config parameters which is external code. All

RE: [CVS ci] object stuff

2003-12-11 Thread chromatic
On Thu, 2003-12-11 at 12:05, Gordon Henriksen wrote: > It is truly remarkable the lengths that Perl programmers seem to be > willing go to in order to hide a function call or obscure the existence > of an object. :) Not all of the poly- and allomorphism in the world comes from "traditional" objec

RE: [CVS ci] object stuff

2003-12-11 Thread Gordon Henriksen
Melvin Smith <[EMAIL PROTECTED]> wrote: > my $foo = Oracle::Instance::DEV1::db_block_buffers; > > The namespace lookup in Oracle::Init checks the Oracle config > parameters which is external code. > > All sorts of neat possibilities. :) It is truly remarkable the lengths that Perl programmers

RE: [CVS ci] object stuff

2003-12-11 Thread Melvin Smith
At 03:05 PM 12/11/2003 -0500, Gordon Henriksen wrote: Melvin Smith <[EMAIL PROTECTED]> wrote: > my $foo = Oracle::Instance::DEV1::db_block_buffers; > > The namespace lookup in Oracle::Init checks the Oracle config > parameters which is external code. > > All sorts of neat possibilities. :) It is t

Re: [CVS ci] object stuff

2003-12-11 Thread Melvin Smith
I think a heirarchy is a good idea for namespacing in general. I've always wanted to be able to tie namespaces in Perl 5. It would only make sense that if I tie Foo::, that Foo::anything:: would also go through that tie to get the anything:: stash. What do you mean by "tie" here? Are you talking

Re: [CVS ci] object stuff

2003-12-11 Thread Jeff Clites
On Dec 10, 2003, at 12:37 AM, Luke Palmer wrote: Dan Sugalski writes: At 05:14 PM 12/5/2003 +0100, Leopold Toetsch wrote: set I2, P1["Foo\x00i"] # I1 == I2 gets currently the attribute idx (0) of "$Foo::i". Q: Should the assembler mangle the "Foo::i" to "Foo\0i" I don't like it either, but

Re: [CVS ci] object stuff

2003-12-10 Thread Tim Bunce
On Wed, Dec 10, 2003 at 12:26:04PM -0500, Melvin Smith wrote: > At 12:16 PM 12/10/2003 +, Tim Bunce wrote: > >*{"Foo\0Bar\0Baz"}->{var}; > >or > >*{"Foo\0Bar\0Baz\0var"}; > > > [snip] > >I think Dan was proposing the first and that's fine. > >I think the second would be a mistak

RE: [CVS ci] object stuff

2003-12-10 Thread Melvin Smith
At 11:34 AM 12/10/2003 -0600, Robert Eaglestone wrote: Quoth Melvin Smith: >It be a bit friendlier to make the scope resolution operator something ^^ ACK >that at least 1 or 2 languages use as their own already; then all the rest >still have to mangle. Uh oh, time to vote? Voting for my

RE: [CVS ci] object stuff

2003-12-10 Thread Robert Eaglestone
Quoth Melvin Smith: >It be a bit friendlier to make the scope resolution operator something >that at least 1 or 2 languages use as their own already; then all the rest >still have to mangle. Uh oh, time to vote?

Re: [CVS ci] object stuff

2003-12-10 Thread Melvin Smith
At 12:16 PM 12/10/2003 +, Tim Bunce wrote: *{"Foo\0Bar\0Baz"}->{var}; or *{"Foo\0Bar\0Baz\0var"}; [snip] I think Dan was proposing the first and that's fine. I think the second would be a mistake. Using a character that won't collide with HLL has a disadvantage in the general

Re: [CVS ci] object stuff

2003-12-10 Thread Melvin Smith
At 01:37 AM 12/10/2003 -0700, Luke Palmer wrote: Dan Sugalski writes: > At 05:14 PM 12/5/2003 +0100, Leopold Toetsch wrote: > > set I2, P1["Foo\x00i"] # I1 == I2 > > > >gets currently the attribute idx (0) of "$Foo::i". > >Q: Should the assembler mangle the "Foo::i" to "Foo\0i" > > I don't li

Re: [CVS ci] object stuff

2003-12-10 Thread Tim Bunce
On Wed, Dec 10, 2003 at 01:37:22AM -0700, Luke Palmer wrote: > > I think a heirarchy is a good idea for namespacing in general. I've > always wanted to be able to tie namespaces in Perl 5. It would only > make sense that if I tie Foo::, that Foo::anything:: would also go > through that tie to ge

Re: [CVS ci] object stuff

2003-12-10 Thread Luke Palmer
Dan Sugalski writes: > At 05:14 PM 12/5/2003 +0100, Leopold Toetsch wrote: > > set I2, P1["Foo\x00i"] # I1 == I2 > > > >gets currently the attribute idx (0) of "$Foo::i". > >Q: Should the assembler mangle the "Foo::i" to "Foo\0i" > > I don't like it either, but the alternative is to impose an

Re: [CVS ci] object stuff

2003-12-10 Thread Jeff Clites
On Dec 9, 2003, at 3:40 PM, Dan Sugalski wrote: At 5:46 PM +0100 12/5/03, Leopold Toetsch wrote: Melvin Smith <[EMAIL PROTECTED]> wrote: At 05:14 PM 12/5/2003 +0100, Leopold Toetsch wrote: set I2, P1["Foo\x00i"] # I1 == I2 gets currently the attribute idx (0) of "$Foo::i". Q: Should the as

Re: [CVS ci] object stuff

2003-12-09 Thread Dan Sugalski
At 5:46 PM +0100 12/5/03, Leopold Toetsch wrote: Melvin Smith <[EMAIL PROTECTED]> wrote: At 05:14 PM 12/5/2003 +0100, Leopold Toetsch wrote: set I2, P1["Foo\x00i"] # I1 == I2 gets currently the attribute idx (0) of "$Foo::i". Q: Should the assembler mangle the "Foo::i" to "Foo\0i" Someth

Re: [CVS ci] object stuff

2003-12-05 Thread Leopold Toetsch
Melvin Smith <[EMAIL PROTECTED]> wrote: > At 05:14 PM 12/5/2003 +0100, Leopold Toetsch wrote: >> set I2, P1["Foo\x00i"] # I1 == I2 >> >>gets currently the attribute idx (0) of "$Foo::i". >>Q: Should the assembler mangle the "Foo::i" to "Foo\0i" > Something about this embedded \0 character >

Re: [CVS ci] object stuff

2003-12-05 Thread Melvin Smith
At 05:14 PM 12/5/2003 +0100, Leopold Toetsch wrote: set I2, P1["Foo\x00i"] # I1 == I2 gets currently the attribute idx (0) of "$Foo::i". Q: Should the assembler mangle the "Foo::i" to "Foo\0i" Something about this embedded \0 character bugs me. I know its what Dan has in the design doc but i