RE: Object spec, try 2 [x-adr][x-bayes]

2003-03-04 Thread Narins, Josh
> And attributes are essentially member variables of objects, which you > can access as "$obj.foo". Another possible description of > them might be > lvalue methods which never take arguments, and which fetch and store > class-specific pieces of data. Different classes may define their own > pr

Re: Object spec, try 2

2003-03-04 Thread Peter Seibel
Allen Short <[EMAIL PROTECTED]> writes: > > "Peter" == Peter Seibel <[EMAIL PROTECTED]> writes: > > > > Hi, I'm new to this list and haven't had a chance to grovel > > through the old archives yet so please forgive me for jumping in > > in the middle of things. > > > Anyway,

Re: Object spec, try 2

2003-03-03 Thread Allen Short
> "Peter" == Peter Seibel <[EMAIL PROTECTED]> writes: > Hi, I'm new to this list and haven't had a chance to grovel > through the old archives yet so please forgive me for jumping in > in the middle of things. > Anyway, what about languages that don't attach methods to >

Re: Object spec, try 2

2003-03-03 Thread Peter Seibel
"Brent Dax" <[EMAIL PROTECTED]> writes: > Dan Sugalski: > # Okay, here's another shot at the semantics for objects. If folks, > # especially non-perl folks, would look this over and chime in, I'd > # much appreciate it. > ... > # Attributes are local to a class in an object's inheritance hierarc

Re: Object spec, try 2 [x-adr][x-bayes]

2003-03-03 Thread Dan Sugalski
At 12:43 PM -0500 3/3/03, Benjamin Goldberg wrote: AFAIK, though, properties are only attatched to values (not variables), and are entirely run-time things. Nope, they can go on both (or either), which makes things somewhat more interesting. -- Dan

RE: Object spec, try 2 [x-adr][x-bayes]

2003-03-03 Thread Dan Sugalski
At 5:30 PM +0100 3/3/03, Erik Bågfors wrote: On Mon, 2003-03-03 at 16:52, Garrett Goebel wrote: From: Erik Bågfors [mailto:[EMAIL PROTECTED] > > On Sun, 2003-03-02 at 23:21, Dan Sugalski wrote: > > Okay, here's another shot at the semantics for objects. If folks, > > especially non-perl folks,

RE: Object spec, try 2

2003-03-03 Thread Dan Sugalski
At 6:29 PM -0800 3/2/03, Brent Dax wrote: Dan Sugalski: # Okay, here's another shot at the semantics for objects. If folks, # especially non-perl folks, would look this over and chime in, I'd # much appreciate it. ... # Attributes are local to a class in an object's inheritance hierarchy. # An obje

Re: Object spec, try 2

2003-03-03 Thread Dan Sugalski
At 9:49 AM +0100 3/3/03, Erik Bågfors wrote: On Sun, 2003-03-02 at 23:21, Dan Sugalski wrote: Okay, here's another shot at the semantics for objects. If folks, especially non-perl folks, would look this over and chime in, I'd much appreciate it. Objects have (all optional): *) Properties *)

Re: Object spec, try 2 [x-adr][x-bayes]

2003-03-03 Thread Benjamin Goldberg
Erik Bågfors wrote: > Garrett Goebel wrote: >> Erik Bågfors wrote: >>> Dan Sugalski wrote: Okay, here's another shot at the semantics for objects. If folks, especially non-perl folks, would look this over and chime in, I'd much appreciate it. Objects have (all optional): >>

Re: Object spec, try 2

2003-03-03 Thread Dan Sugalski
At 5:54 PM -0800 3/2/03, Dave Whipp wrote: Dan Sugalski wrote: Okay, here's another shot at the semantics for objects. If folks, especially non-perl folks, would look this over and chime in, I'd much appreciate it. The thing that I noticed was the lack of semantics for creation and Hence the next

RE: Object spec, try 2 [x-adr][x-bayes]

2003-03-03 Thread Garrett Goebel
Erik Bågfors wrote: > On Mon, 2003-03-03 at 16:52, Garrett Goebel wrote: > > From: Erik Bågfors [mailto:[EMAIL PROTECTED] > > > On Sun, 2003-03-02 at 23:21, Dan Sugalski wrote: > > > > > > > > Objects have (all optional): > > > > > > > > *) Properties > > > > *) Methods > > > > *) Attributes > >

Re: Object spec, try 2

2003-03-03 Thread Benjamin Goldberg
Brent Dax wrote: > > Dan Sugalski: > # Okay, here's another shot at the semantics for objects. If folks, > # especially non-perl folks, would look this over and chime in, I'd > # much appreciate it. [snip] > I honestly don't care much about such languages, but how is Parrot > going to support clas

RE: Object spec, try 2 [x-adr][x-bayes]

2003-03-03 Thread Erik Bågfors
On Mon, 2003-03-03 at 16:52, Garrett Goebel wrote: > From: Erik Bågfors [mailto:[EMAIL PROTECTED] > > > > On Sun, 2003-03-02 at 23:21, Dan Sugalski wrote: > > > Okay, here's another shot at the semantics for objects. If folks, > > > especially non-perl folks, would look this over and chime in, I'

RE: Object spec, try 2 [x-adr][x-bayes]

2003-03-03 Thread Garrett Goebel
From: Erik Bågfors [mailto:[EMAIL PROTECTED] > > On Sun, 2003-03-02 at 23:21, Dan Sugalski wrote: > > Okay, here's another shot at the semantics for objects. If folks, > > especially non-perl folks, would look this over and chime in, I'd > > much appreciate it. > > > > > > Objects have (all op

Re: Object spec, try 2

2003-03-03 Thread Dave Whipp
Dan Sugalski wrote: Okay, here's another shot at the semantics for objects. If folks, especially non-perl folks, would look this over and chime in, I'd much appreciate it. The thing that I noticed was the lack of semantics for creation and destruction. Will there be well defined creation semanti

Re: Object spec, try 2

2003-03-03 Thread Erik Bågfors
On Sun, 2003-03-02 at 23:21, Dan Sugalski wrote: > Okay, here's another shot at the semantics for objects. If folks, > especially non-perl folks, would look this over and chime in, I'd > much appreciate it. > > > Objects have (all optional): > > *) Properties > *) Methods > *) Attributes Can

RE: Object spec, try 2

2003-03-02 Thread Brent Dax
Dan Sugalski: # Okay, here's another shot at the semantics for objects. If folks, # especially non-perl folks, would look this over and chime in, I'd # much appreciate it. ... # Attributes are local to a class in an object's inheritance hierarchy. # An object can have one "foo" attribute per cla

RE: Object spec, try 2

2003-03-02 Thread Brent Dax
Benjamin Goldberg: # Dan Sugalski wrote: # [snip] # > All of these--method lookup, property lookup, attribute # lookup--may be # > intercepted, and all may have a fallback method that's # called if the # > 'proper' lookup fails. # > # > I think this about covers it. If there's missing semantic

Re: Object spec, try 2

2003-03-02 Thread Benjamin Goldberg
Dan Sugalski wrote: [snip] > All of these--method lookup, property lookup, attribute lookup--may > be intercepted, and all may have a fallback method that's called if > the 'proper' lookup fails. > > I think this about covers it. If there's missing semantics, and I > expect I missed something, let