Re: 142 (v1): Enhanced Pack/Unpack

[email protected] (Jim Edwards)
Newsgroups perl.perl6.language.data
Organization INMet
Message-ID <[email protected]>
Tom Christiansen wrote:

>     printf "uid %d logged on from %s on %s.\n",
>         $him->ut_uid, $him->ut_host, scalar local $him->ut_date;
>
>

Is ut_uid a scaler value here?  It occured to me when I read this that it would
be nice to get rid of the distinction between

$him->{ut_uid}
$him->[ut_uid]
and
$him->ut_uid()

and just have

$him->ut_uid

I guess this means that I would like a standard way to visit (retreve/assign) the
members of an object that doesn't depend on the internal implementation of the
object module and doesn't depend on the module developer explicitly writing it.
This standard  (implicit) method could be overridden by the developer by
including a like named function in the Module.

Maybe this is a little like RFC 109 but applied to references only so @ and % are
left alone...
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.