Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Error Laziness?

6 views
Skip to first unread message

Luke Palmer

unread,
Nov 16, 2005, 2:34:03 AM11/16/05
to perl6-c...@perl.org
Here is some perplexing behavior:

say "Foo";
hello there;

sub hello () {
say "Bar";
}

sub there () {
say "Baz";
}

This prints:

Foo
*** No compatible subroutine found: "&hello"
at lazy.p6 line 2, column 1-12

I would expect it to print:

Foo
Baz
*** No compatible subroutine found: "&hello"
at lazy.p6 line 2, column 1-12

(If it didn't die at compile time, which would also be acceptable behavior)

What's up with that?

0 new messages