develooper Front page | perl.perl6.compiler | Postings from July 2005

Re: Is namespace qualification really required

Thread Previous
From:
Flavio S. Glock
Date:
July 20, 2005 13:27
Subject:
Re: Is namespace qualification really required
Message ID:
aa47605d05072013261b37b155@mail.gmail.com
Autrijus Tang said:
> ...and I fixed the bug promptly. :)

I'm getting this error:

  pugs> 10.round
  *** Undeclared variable: "&do_round"
      at src/perl6/Prelude.pm line 278, column 9 - line 279, column 5

This is the Prelude code:

    sub do_round($n) is primitive is safe {
        ($n < 0) ?? int( $n - 0.5) :: int($n + 0.5);
    }
    sub round($n) is primitive is safe {
        round_gen($n, &do_round)
    }

I'm using r5716 in a chroot I just created, so I'm sure there are no
older versions around.

- Flavio S. Glock

Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About