Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

Ovid (2709)

  (email not shown publicly)
AOL IM: ovidperl (Add Buddy, Send Message)

Stuff with the Perl Foundation. A couple of patches in the Perl core. A few CPAN modules. That about sums it up.

Journal of Ovid (2709)

Thursday October 30, 2008
07:57 AM

Not Writing Perl 6

[ #37767 ]

Today I have again failed to build Perl 6 on Solaris. Eventually I managed to get it to compile on an older Linux box. I figured a good place to check out basic functionality was to create a doubly-linked list class and see how easy it is. That's when I discovered a lot of problems just trying to find good examples of Perl 6 code on the Web. Where's a simple class with an object initializer? I think I write something like this:

class Node {
    has $.val is rw;
    has $.next;
    has $.prev;

    submethod BUILD ($self:) {

    method !linkto ($self: Node $target) {
        $.next = $target;

Of course, that's just a stub class, but no matter how I try to write it, I always get a Statement not terminated properly at line 6, near "($self:) {\n" error. Maybe submethods aren't implemented, but I figured I could examine the spectests to see what's there and that's where the real problem kicks in: make spectest uses subversion to fetch the tests from the pugs repository. Our firewall doesn't allow this. I had planned to spend today working with Perl 6, but there are still too many obstacles for just casually playing around. It's getting so much closer I can just taste it, but not yet. Not yet. Damn!

Update: I give up. I've tried multiple workarounds just to get a proper Node constructor up and running and everything is throwing errors :(

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.