Re: "Functional" Perl6 compiler doesn't seem to be functioning

2002-08-20 Thread Leopold Toetsch
Chris Dutton wrote: > Maybe I'm just doing something wrong... > Then when I try to run perl6, via "perl perl6" to avoid @INC issues, I get: > > "Code must live with a function" > > Trying to compile hw.p6. What does hw.p6 look like? Anyways: sub main() { # your code goes here my $a

Re: "Functional" Perl6 compiler doesn't seem to be functioning

2002-08-19 Thread Chris Dutton
On Tuesday, August 20, 2002, at 01:11 AM, Sean O'Rourke wrote: > This is a weird implementation artifact, which should probably be > documented. While real Perl gathers up all the statements you put > outside > of any function into a sort of "main", for the time being you'll need to > put all t

Re: "Functional" Perl6 compiler doesn't seem to be functioning

2002-08-19 Thread Sean O'Rourke
"Welcome, guests! (ah, fresh victims...)" On Tue, 20 Aug 2002, Chris Dutton wrote: > "Code must live with a function" at line 219 in P6C/IMCC.pm. From what > I gathered from trying to read that module, it appears that somehow > $curfunc is getting undefined, and then never redefined. This is a

"Functional" Perl6 compiler doesn't seem to be functioning

2002-08-19 Thread Chris Dutton
Maybe I'm just doing something wrong... I make parrot, which goes smoothly, then make IMCC, which chokes on "long long". Then I "perl pconfig.pl" and "make" and after two or three tries a full Perl6grammar.pm magically shows up. I'm still scratching my head over that one. Then when I try to