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

[email protected] (Nathan Wiger)
Newsgroups perl.perl6.language.objects
Message-ID <[email protected]>
Hildo Biersma wrote:
> 
> I feel this discussion confuses multiple things:
> - Is a scalar an object or a reference to an object?

The current thinking on this list is that a scalar == an object. That's
where this discussion is getting confusing, because people aren't
clarifying that this:

   my int $x = 5;

Is really a call to an implicit constructor for the 'int' class:

   my int $x = 5;   # $x = int->CREATE, $x->STORE(5)

This borders right on the edge of internals. The only reason this isn't
internals is because you'll be able to override these methods at will.

Hopefully these emails will clear this up a little:

http://www.mail-archive.com/perl6-language-objects%40perl.org/msg00097.html
http://www.mail-archive.com/perl6-language-objects%40perl.org/msg00106.html
http://www.maililbohive.com/perl6-language-objects%40perl.org/msg00112.html

-Nate
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.