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]

Reply via email to