Michal Wallace [EMAIL PROTECTED] wrote:
I'm not even trying to get objects working yet. I just
need something that'll let me run setprop on it
You can attach properties to all PMCs. And WRT object instantiation:
t/pmc/object*.t but only integer attributes are done.
leo
On Thu, 8 Jan 2004, Leopold Toetsch wrote:
Michal Wallace [EMAIL PROTECTED] wrote:
I'm not even trying to get objects working yet. I just
need something that'll let me run setprop on it
You can attach properties to all PMCs. And WRT object instantiation:
t/pmc/object*.t but only integer
Michal Wallace [EMAIL PROTECTED] wrote:
What exactly is the difference between an
attribute and a property?
$ perldoc docs/pdds/pdd15_objects.pod
/TRANSLATION AND GLOSSARY
Michal J Wallace
leo
On Thu, 8 Jan 2004, Leopold Toetsch wrote:
Michal Wallace [EMAIL PROTECTED] wrote:
What exactly is the difference between an
attribute and a property?
$ perldoc docs/pdds/pdd15_objects.pod
/TRANSLATION AND GLOSSARY
Thanks. Don't mind me. I'm going to go make
a card that says RTFM on my
Michal Wallace [EMAIL PROTECTED] wrote:
On Thu, 8 Jan 2004, Leopold Toetsch wrote:
$ perldoc docs/pdds/pdd15_objects.pod
/TRANSLATION AND GLOSSARY
So let me see if I have this right. Attributes
are slots in a class, that get created on each
instance. Properties don't have predefined slots,
On Tue, 2 Dec 2003, Dan Sugalski wrote:
*) Creating new objects involves calling the -init vtable entry *on
the class*. Because of this each class gets a custom vtable where the
init method has been swapped out for one (from objects.c) that
creates a new object instead.
Well, cool! How do I
Michal Wallace writes:
On Tue, 2 Dec 2003, Dan Sugalski wrote:
*) Creating new objects involves calling the -init vtable entry *on
the class*. Because of this each class gets a custom vtable where the
init method has been swapped out for one (from objects.c) that
creates a new object
On Wed, 7 Jan 2004, Luke Palmer wrote:
Should go something like this:
.sub _main
.local object Cat
.local object felix
newclass Cat, Cat
find_type $I0, Cat
felix = new $I0
# ...
.end
Thanks, but that doesn't work either. :/
The
Michal Wallace writes:
On Wed, 7 Jan 2004, Luke Palmer wrote:
Should go something like this:
.sub _main
.local object Cat
.local object felix
newclass Cat, Cat
find_type $I0, Cat
felix = new $I0
# ...
.end
Thanks,