Re: RFC 171 (v2) my Dog $spot should call a constructor implicitly

[email protected] (Michael Fowler)
Newsgroups perl.perl6.language.objects
Message-ID <[email protected]>
On Thu, Aug 31, 2000 at 11:48:51PM -0000, Perl6 RFC Librarian wrote:
> =head1 TITLE
> 
> my Dog $spot should call a constructor implicitly

Look at me, replying to my own RFC, how tacky.  :)

 
> If the multi-argument form of the constructor were to be adopted this would
> have to change.  Dog->$METHOD would either have to return a tied scalar,
> thus being the equivalent of:
> 
>     $spot = Dog->$METHOD()->STORE("Spot");

This should be something like:

    $temp = Dog->$METHOD();
    $temp = "Spot";
    $spot = tied($temp);

Or possibly, if $METHOD returns a tied scalar that doubles as an object:

    $spot = Dog->$METHOD();
    $spot = "Spot";

I'll fix it in the next revision, which I'll submit after some discussion,
or after some time has passed, whichever comes first.


Michael
--
Administrator                      www.shoebox.net
Programmer, System Administrator   www.gallanttech.com
--
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.