develooper Front page | perl.perl5.porters | Postings from December 2008

Re: [PATCH] Class as a Feature (take four)

Thread Previous | Thread Next
Rafael Garcia-Suarez
December 15, 2008 14:24
Re: [PATCH] Class as a Feature (take four)
Message ID:
2008/12/15 chromatic <>:
> I give up.  Now you have to say one of:
>        use feature 'class';
>        use 5.011;
> ... to enable this feature.  While it's *possible* to make this code work by
> default in the face of all of that DarkPAN code which passes single-element
> hash references to methods named 'class' in the dative form, it's very much
> not worth my time to do so (not that it was worth my time to work around Perl
> 4-era package separators, but it's a snow day).

Sorry if I come late to this discussion, but what is the grand plan ?
Surely a lone class keyword is not that useful ? The following has to
be considered :

* syntax extensions in the class{} block (for example default
strictures, method keyword...)
* class attributes (like inheritance, or final-ness à la final classes
of Java, just to name some examples)
* a 3rd idea that I haven't seen yet here... define defaults for
method attributes ? (at BEGIN or CHECK time) Or interact with the
compilation in one way or another

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