in reply to new Class:: module to declare classes in Perl in the popular way: class foo extends bar { sub x($var){..} }

The parameter tricks you're playing with sound a lot like what Perl6 is going to allow (although I must admit my knowledge on the current state of things ia a little foggy at the moment).

A CPAN search reveals:

It would seem to me that the name of your module(s) has already been chosen ;-)

Liz

  • Comment on Re: new Class:: module to declare classes in Perl in the popular way: class foo extends bar { sub x($var){..} }

Replies are listed 'Best First'.
Re: Re: new Class:: module to declare classes in Perl in the popular way: class foo extends bar { sub x($var){..} }
by gmpassos (Priest) on Oct 05, 2003 at 22:34 UTC
    The first thing that I have made was to test Perl6::Classes, but it doesn't work, since is bery easy to crash it! Soo, I started to write one, and found a lot of things that you have to made to avoid errors on Filter::Simple, specially whe you are working with quotes and comments (comments are not parsed on Filter::Simple).

    For now I have a stable code, and have tested with a lot of modules, and some classes writed on it.

    Note that I'm using some extra things in my module, like the input arguments and html blocks. Note that the idea is not to work with Perl6 concepts, and just have an easier way to declare classes in pure Perl5.

    I'm still looking for a name...

    Graciliano M. P.
    "Creativity is the expression of the liberty".