From: Dan Sugalski [mailto:[EMAIL PROTECTED]]
> At 9:51 AM -0800 1/14/03, Jonathan Sillito wrote:
> >
> >Below are some questions about this ...
> 
> And now some answers. :)
> 
> >>  From: Dan Sugalski [mailto:[EMAIL PROTECTED]]
> >
> >[snip]
> >
> >>  Objects, as far as I see it, have the following properties:
> >>
> >>  1) They have runtime-assignable properties
> >
> >Terminology question: what is the difference between a 
> >property and an attribute? Perhaps the answer could go in
> >the glossary.
> 
> A property is a runtime assignable name/value pair that you stick on 
> a variable or value. An attribute is a named variable that all 
> objects of a particular class have.

For a while perl6-language was using both terms for the runtime
variable/value name/value tag. This stems from Perl 5.6's attributes and
Attribute::Handlers modules. But in Perl6 s/attributes/properties/ because
properties have nothing to do with OO, whereas 'attribute' has the
"object/class data-member" meaning in OO.


> Properties can come and go at runtime, but attributes are fixed. (I 
> think you could also consider attributes "instance variables", but 
> I'm a bit OO fuzzy so I'm not sure that's entirely right)
 
Both classes and objects can have attributes.

No runtime modification of class and/or object attributes... :(

--
Garrett Goebel
IS Development Specialist
ScriptPro                   Direct: 913.403.5261
5828 Reeds Road               Main: 913.384.1008
Mission, KS 66202              Fax: 913.384.2180
www.scriptpro.com          [EMAIL PROTECTED] 

Reply via email to