On Saturday 28 July 2007, Patrick R. Michaud wrote: > On Sat, Jul 28, 2007 at 01:48:13PM -0500, Patrick R. Michaud wrote: > > Also, I'm looking at the STD.pm grammar, and I don't quite see how > > or where it's handling parsing of nullary functions. > > Actually, in thinking about this, there's likely to be a symbol > of available barewords somewhere in the parser, and the parser > will parse these as nouns/terms instead of list operators. > We currently don't have that feature in the compiler yet, but > I'll see about adding it soon.
Okay. I'm seeing similar behavior with things like sin: use v6-alpha; use Test; plan 2; { is(sin(pi()/2), 1, 'sin, parenthesized'); my $halfPi = pi()/2; is(sin $halfPi , 1, 'sin, bareword with a variable'); } returns 1..2 ok 1 - is! sin, parenthesized Null PMC access in invoke() current instr.: 'parrot;Perl6::Compiler;main' pc 138 (perl6.pir:98) So that should fix a whole raft of semi-related bugs.