Re: Anonymous classes (was Re: Anyone actually experienced with object inheritance?)

2001-07-02 Thread Piers Cawley
Michael G Schwern <[EMAIL PROTECTED]> writes: > On Mon, Jul 02, 2001 at 04:18:31PM -0400, Michael G Schwern wrote: > > On Mon, Jul 02, 2001 at 12:59:51PM -0700, David Whipp wrote: > > > Its not quite the same thing, but Java does have the concept of > > > anonymous classes (it names them 'inner'

Re: Anyone actually experienced with object inheritance?

2001-07-02 Thread Bart Schuller
On Sun, Jul 01, 2001 at 04:35:16PM -0400, [EMAIL PROTECTED] wrote: > Rather than stumbling around in the dark here, is anyone actually > experienced with object inheritance? Any Self programmers out there? > Someone that's actually used this technique often and understands what > works and what d

Re: PDD 4, version 1.2.

2001-07-02 Thread Uri Guttman
> "DS" == Dan Sugalski <[EMAIL PROTECTED]> writes: DS> At 09:07 PM 7/2/2001 +0100, Graham Barr wrote: >> I for one use s/^...// quite often in the knowledge that it is optimized to >> just move a pointer and not cause a copy of the string. DS> We'll still be doing that. (The leftover

Generalizing value properties to become postits

2001-07-02 Thread Me
Simplifying somewhat (ok, a heck of a lot), an rvalued: $foo is bar or $foo : bar is syntactic sugar for: bar($foo) with some extra magic for handling a properties hash associated with $foo's value, in particular resetting the hash when $foo's value changes. Right? Basically, p

Re: Anyone actually experienced with object inheritance?

2001-07-02 Thread schwern
On Mon, Jul 02, 2001 at 05:38:11PM -0400, John Porter wrote: > Well... "package" is a magic perl5-inducing keyword in perl6, right? > Maybe "namespace" is the way to go. I think the idea was "class". Lexical namespaces can just mirror whatever happens to the rest of the package/class system. --

Re: Anonymous classes (was Re: Anyone actually experienced with object inheritance?)

2001-07-02 Thread John Porter
Michael G Schwern wrote: > > Give me data aggregation by inheritance > Oooh, now that would be useful. Of course it would. That's why nearly every OO language (beside Perl) has it. > > and then I'll grant that inner classes are easy to tack on. > You can always do this right now: >

Re: Anyone actually experienced with object inheritance?

2001-07-02 Thread John Porter
Michael G Schwern wrote: > my package Foo { > sub bar { ... } > } Well... "package" is a magic perl5-inducing keyword in perl6, right? Maybe "namespace" is the way to go. -- John Porter

Re: Anyone actually experienced with object inheritance?

2001-07-02 Thread Michael G Schwern
On Mon, Jul 02, 2001 at 05:09:58PM -0400, John Porter wrote: > Perhaps this could be done by allowing to attach a name to q > lexical scope; perhaps this could be conflated with normal labels. my package Foo { sub bar { ... } } perhaps? -- Michael G. Schwern

Anonymous classes (was Re: Anyone actually experienced with object inheritance?)

2001-07-02 Thread Michael G Schwern
On Mon, Jul 02, 2001 at 05:04:23PM -0400, John Porter wrote: > Michael G Schwern wrote: > > Are they really necessary? You can get the same effect so many other > > ways in Perl already, > > That is a very unhelpful attitude. We've already got everything and the kitchen sink proposed for Perl

Re: Anyone actually experienced with object inheritance?

2001-07-02 Thread Dan Sugalski
At 04:18 PM 7/2/2001 -0400, Michael G Schwern wrote: >On Mon, Jul 02, 2001 at 12:59:51PM -0700, David Whipp wrote: > > Its not quite the same thing, but Java does have the concept of > > anonymous classes (it names them 'inner' classes): Is Perl6 going > > to have a similar concept? > >Are they re

Re: Anyone actually experienced with object inheritance?

2001-07-02 Thread John Porter
Jarkko Hietaniemi wrote: > I forget... has the possibility/utility of having nested namespaces > been discussed? Not sure; probably... but we'd need not just *nested* namespaces, but namespace *scoping*. Perhaps this could be done by allowing to attach a name to q lexical scope; perhaps this cou

Re: Anyone actually experienced with object inheritance?

2001-07-02 Thread John Porter
Michael G Schwern wrote: > Are they really necessary? You can get the same effect so many other > ways in Perl already, That is a very unhelpful attitude. Give me data aggregation by inheritance, namespace scoping, and interfaces, and then I'll grant that inner classes are easy to tack on. --

Re: Anyone actually experienced with object inheritance?

2001-07-02 Thread John Porter
David Whipp wrote: > Its not quite the same thing, but Java does have the concept of > anonymous classes (it names them 'inner' classes): Is Perl6 going > to have a similar concept? Well, Perl5 has neither of the features that would make inner classes meaningful -- data structure aggregation by i

Re: Anyone actually experienced with object inheritance?

2001-07-02 Thread Jarkko Hietaniemi
On Mon, Jul 02, 2001 at 01:30:11PM -0700, Damien Neil wrote: > On Mon, Jul 02, 2001 at 12:59:51PM -0700, David Whipp wrote: > > Its not quite the same thing, but Java does have the concept of > > anonymous classes (it names them 'inner' classes): Is Perl6 going > > to have a similar concept? > >

Re: Anyone actually experienced with object inheritance?

2001-07-02 Thread Damien Neil
On Mon, Jul 02, 2001 at 12:59:51PM -0700, David Whipp wrote: > Its not quite the same thing, but Java does have the concept of > anonymous classes (it names them 'inner' classes): Is Perl6 going > to have a similar concept? Inner classes and anonymous classes are actually different in Java. (Anon

Re: PDD 4, version 1.2.

2001-07-02 Thread Dan Sugalski
At 09:19 PM 7/2/2001 +0100, Graham Barr wrote: >On Mon, Jul 02, 2001 at 04:12:31PM -0400, Dan Sugalski wrote: > > At 09:07 PM 7/2/2001 +0100, Graham Barr wrote: > > >On Mon, Jul 02, 2001 at 03:52:34PM -0400, Dan Sugalski wrote: > > > > At 08:36 PM 7/2/2001 +0100, Simon Cozens wrote: > > > > >On Mo

Anonymous classes (was Re: Anyone actually experienced with object inheritance?)

2001-07-02 Thread Michael G Schwern
On Mon, Jul 02, 2001 at 04:18:31PM -0400, Michael G Schwern wrote: > On Mon, Jul 02, 2001 at 12:59:51PM -0700, David Whipp wrote: > > Its not quite the same thing, but Java does have the concept of > > anonymous classes (it names them 'inner' classes): Is Perl6 going > > to have a similar concept?

Re: PDD 4, version 1.2.

2001-07-02 Thread Graham Barr
On Mon, Jul 02, 2001 at 04:12:31PM -0400, Dan Sugalski wrote: > At 09:07 PM 7/2/2001 +0100, Graham Barr wrote: > >On Mon, Jul 02, 2001 at 03:52:34PM -0400, Dan Sugalski wrote: > > > At 08:36 PM 7/2/2001 +0100, Simon Cozens wrote: > > > >On Mon, Jul 02, 2001 at 03:00:54PM -0400, Dan Sugalski wrote:

Re: Anyone actually experienced with object inheritance?

2001-07-02 Thread Michael G Schwern
On Mon, Jul 02, 2001 at 12:59:51PM -0700, David Whipp wrote: > Its not quite the same thing, but Java does have the concept of > anonymous classes (it names them 'inner' classes): Is Perl6 going > to have a similar concept? Are they really necessary? You can get the same effect so many other way

Re: Perl Doesn't Suck

2001-07-02 Thread Elaine -HFB- Ashton
abigail [[EMAIL PROTECTED]] quoth: *> *>Blech. Sun didn't force you to run either Linux, or to use a PPC platform. *>It's your choice, and blaming Sun to screw you doesn't make much sense. Well, it's the Advocate or Asshole dilemma. http://www.perl.com/pub/a/2000/12/advocacy.html The conclusion

Re: PDD 4, version 1.2.

2001-07-02 Thread Dan Sugalski
At 09:07 PM 7/2/2001 +0100, Graham Barr wrote: >On Mon, Jul 02, 2001 at 03:52:34PM -0400, Dan Sugalski wrote: > > At 08:36 PM 7/2/2001 +0100, Simon Cozens wrote: > > >On Mon, Jul 02, 2001 at 03:00:54PM -0400, Dan Sugalski wrote: > > > > >what about starting offset? that is used now to shorten a st

Re: PDD 4, version 1.2.

2001-07-02 Thread Graham Barr
On Mon, Jul 02, 2001 at 03:52:34PM -0400, Dan Sugalski wrote: > At 08:36 PM 7/2/2001 +0100, Simon Cozens wrote: > >On Mon, Jul 02, 2001 at 03:00:54PM -0400, Dan Sugalski wrote: > > > >what about starting offset? that is used now to shorten a string from > > > >the left side. > > > > > > D'oh! In.

[matz@ruby-lang.org: [ruby-talk:17165] Language desgin]

2001-07-02 Thread Simon Cozens
- Forwarded message from Yukihiro Matsumoto <[EMAIL PROTECTED]> - Date: Tue, 3 Jul 2001 03:29:46 +0900 From: [EMAIL PROTECTED] (Yukihiro Matsumoto) Subject: [ruby-talk:17165] Language desgin Hi, Here's my answer to the question about language design. |dear yukihiro |I have visited Ru

RE: Anyone actually experienced with object inheritance?

2001-07-02 Thread David Whipp
Michael G Schwern wrote: > Rather than stumbling around in the dark here, is anyone actually > experienced with object inheritance? Any Self programmers out there? > Someone that's actually used this technique often and understands what > works and what does? Any books/articles to recommend? I

Re: PDD 4, version 1.2.

2001-07-02 Thread Dan Sugalski
At 08:36 PM 7/2/2001 +0100, Simon Cozens wrote: >On Mon, Jul 02, 2001 at 03:00:54PM -0400, Dan Sugalski wrote: > > >what about starting offset? that is used now to shorten a string from > > >the left side. > > > > D'oh! In. Out goes the unused. > >Whoa there. Do we still actually want to do this?

Re: PDD 4, version 1.2.

2001-07-02 Thread Simon Cozens
On Mon, Jul 02, 2001 at 03:00:54PM -0400, Dan Sugalski wrote: > >what about starting offset? that is used now to shorten a string from > >the left side. > > D'oh! In. Out goes the unused. Whoa there. Do we still actually want to do this? It's unclear whether or not it's actually a net win. --

Re: PDD 4, version 1.2.

2001-07-02 Thread Uri Guttman
> "DS" == Dan Sugalski <[EMAIL PROTECTED]> writes: >> Rationale: it burns my eyes to have a mix of names with and >> without underscores. DS> And it means no shift key needed. from too many years of typing -> and foo_bar, i have my emacs map _ to - and vise versa. so i can type foo_b

Re: PDD 4, version 1.2.

2001-07-02 Thread Dan Sugalski
At 02:48 PM 7/2/2001 -0400, Uri Guttman wrote: > > "DS" == Dan Sugalski <[EMAIL PROTECTED]> writes: [Typos and dropped phrases snipped] Fixed, thanks. >what about starting offset? that is used now to shorten a string from >the left side. D'oh! In. Out goes the unused.

Re: PDD 4, version 1.2.

2001-07-02 Thread Dan Sugalski
At 01:53 PM 7/2/2001 -0500, Jarkko Hietaniemi wrote: >Good thinking to leave space for future expansion. (A UV is >guaranteed to be enough to hold a pointer, right?) Yes, but we just lost it to the starting offset. > > DS> } > >Rationale: it burns my eyes to have a mix of names with and >wi

Re: PDD 4, version 1.2.

2001-07-02 Thread Jarkko Hietaniemi
Silly stylistic nit: > DS> struct perl_string { > DS> void *string_buffer; buffer > DS> UV allocated; > DS> UV byte_length; bytes > DS> UV flags; > DS> UV character_length; characters > DS> UV encoding; > DS> UV type; > DS> UV unused; Goo

Re: PDD 4, version 1.2.

2001-07-02 Thread Uri Guttman
> "DS" == Dan Sugalski <[EMAIL PROTECTED]> writes: DS> The string header format has changed some to allow for type DS> tagging. The flags infor for strings has changed as well. ^ DS> =head1 DESCRIPTION DS> This PDD details the primitive datatypes that th

PDD 4, version 1.2.

2001-07-02 Thread Dan Sugalski
This is going to be the final version, unless someone can see something stupid in it. The only changes from version 1.1 are to the string stuff. Ask, could you link this on to the PDD page of dev.perl.org, please? =head1 TITLE Perl's internal data types =head1 VERSION 1.2 =head2 CURRENT

Re: Anyone actually experienced with object inheritance?

2001-07-02 Thread schwern
On Mon, Jul 02, 2001 at 08:32:04AM -0400, John Porter wrote: > It actually is very applicable in programming Frame systems, > which are a kind of souped-up semantic network thing, > used a lot in knowledgebases. Could you show me an example of what that is, how traditional class-based OO tries to

Re: Perl Doesn't Suck

2001-07-02 Thread Abigail
On Fri, Jun 29, 2001 at 06:59:07PM -0400, Michael G Schwern wrote: > > As a Solaris gal, this might all seem perfectly sensible. Myself, I'm > doubly screwed running Linux (which is not Windows or Solaris) on a > PowerPC (which is not Intel or Sparc). Sun might have perfectly valid > business r

Re: Anyone actually experienced with object inheritance?

2001-07-02 Thread John Porter
[EMAIL PROTECTED] wrote: > Rather than stumbling around in the dark here, is anyone actually > experienced with object inheritance? Any Self programmers out there? > Someone that's actually used this technique often and understands what > works and what does? I haven't used Self, only Lisp and P

Re: Per-object inheritance in core a red herring?

2001-07-02 Thread Graham Barr
On Fri, Jun 29, 2001 at 08:59:59AM -0400, John Porter wrote: > Michael G Schwern wrote: > > Second, and perhaps more importantly, we can do this perfectly well > > with a module. No hacks, no tricks, no filters. > > Class::Object uses the mini-class technique (ie. auto-generated > > classes > >

[OT] Re: Perl Doesn't Suck

2001-07-02 Thread Stephen Zander
> "schwern" == schwern <[EMAIL PROTECTED]> writes: schwern> Sun doesn't give out its JDK source code freely, they schwern> have all sorts of restrictions. If I wanted to port the schwern> JDK I can do it, but I need special permission from Sun schwern> to distribute it. This

language-dev

2001-07-02 Thread Simon Cozens
Have you noticed that the same issues keep coming up over and over: Unicode representation, op despatch and signals, threading, integer preservation, and so on and so on. Have you wondered how other languages, like Python and Tcl, solve these? Do you know that *your* experience with language imple