On Mon, Aug 14, 2000 at 01:27:11PM -0400, Lipscomb, Al wrote:
> With some of the other suggestions to improve the "object" model in Perl I
> was wondering if this would not be the time to ask about object-like
> behavior around the simple scalar things.
>
> For example if we had something like this:
>
> my $id;
> $id = "007";
> print "My ID is $id->string\n";
>
> Having methods and properties on the basic data types seems like a nice
> thing.
We sorta do already. You can think of
print "my ID is $id\n";
as calling the "toString" method for $id. We currently just don't
have a way to explicitly get at that method except by supplying the
proper context.
-Scott
--
Jonathan Scott Duff
[EMAIL PROTECTED]
- RFC 89 (v2) Controllable Data Typing Perl6 RFC Librarian
- Re: RFC 89 (v2) Controllable Data Typing Jeremy Howard
- Re: RFC 89 (v2) Controllable Data Typing James Mastros
- Re: RFC 89 (v2) Controllable Data Typing Nathan Wiger
- RE: RFC 89 (v2) Controllable Data Typing Lipscomb, Al
- Re: RFC 89 (v2) Controllable Data Typing Jonathan Scott Duff
- Re: RFC 89 (v2) Controllable Data Typing Nathan Wiger
- Re: RFC 89 (v2) Controllable Data Typing Dan Sugalski
- RE: RFC 89 (v2) Controllable Data Typing Lipscomb, Al
- Re: RFC 89 (v2) Controllable Data Typing Jonathan Scott Duff
- RE: RFC 89 (v2) Controllable Data Typing Lipscomb, Al
- Re: RFC 89 (v2) Controllable Data Typing Syloke Soong
- Re: RFC 89 (v2) Controllable Data Typing Syloke Soong
