Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Module/Class definition in Rakudo

by moritz (Cardinal)
on Dec 06, 2009 at 22:27 UTC ( [id://811386]=note: print w/replies, xml ) Need Help??


in reply to Module/Class definition in Rakudo

The syntax you use is wrong (see S11 for example), the right thing would be

module Foo:ver<1.0>;

Rakudo (latest version from github) seems to accept this syntax, but to the best of my knowledge ignores it.

Perl 6 - links to (nearly) everything that is Perl 6.

Replies are listed 'Best First'.
Re^2: Module/Class definition in Rakudo
by Burak (Chaplain) on Dec 07, 2009 at 00:30 UTC
    Thanks! #23 seems to parse that as well since I get no errors :) So, the sample modules in the pugs repo are not quite good examples I presume?
      Many of those are very outdated. You'll have better chances in the perl6-examples repository on github.
        Nice :) I'll check that

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://811386]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (6)
As of 2024-04-25 08:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found