Re: RFC 189 (v1) Objects : Hierarchical calls to initializers and destructors

[email protected] (John Siracusa)
Newsgroups perl.perl6.language.objects
Message-ID <B5D5B079.1D2EB%[email protected]>
On 9/1/00 5:44 PM, Nathan Wiger wrote:
>> sub SETUP {
>> my ($self, @ctor_data) = @_;
>> # initialization of object referred to by $self occurs here
>> }
> 
> Hmmm. I'm not sure if I like this. I like the *idea* a lot, but I must
> say that I think I quite like RFC 171's approach better.

I haven't commented on RFC 171 because I assumed it would be shot down
quickly by the Major Contibutors(tm), but let me just say now that I'm
firmly in this camp:

On 9/1/00 5:58 AM, Bart Lateur wrote:
> If you want a constructor called, than FGS *call* a constructor. Maybe you can
> reduce the syntax necessary to do that, but please don't do it behind our
> backs.

And I'll further add that I like Damian's RFCs on the topic, having
essentially duplicated that functionality "by hand" myself at various
times, and found it to be very useful and friendly.  (Although I
used "init" instead of "SETUP" but I guess there already is an "INIT")

-John
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.