develooper Front page | perl.perl6.language | Postings from May 2005

Re: trait and properties thru getter/setters

Thread Previous | Thread Next
May 14, 2005 01:57
Re: trait and properties thru getter/setters
Message ID:
I don't understand why you think you need the eval here?

Mark Biggar

> There is syntax to define trait and properties
> but is there an API?
>   my $b = eval '$a but true'; # setting a true property
>   # API to do it without an eval?
> A trait setter probably does not make sense but for the
> implementer because it should not be set at run time.
> Incidentally, in a interactive environment it would be cool
> to access the documentation of variables and functions using
> properties. Say "doc" and "udoc" respectively for the full and
> one line version.
> -- 
>   cognominal stef

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About