Hi,

this works now (probably for a while, already). I added a test to 
S04-declarations/constant.t with the following commit: 
https://github.com/perl6/roast/commit/6cc8c38a1c

Please note: If you smart match agains a regex you don't get a boolean value 
but either a Match object or Nil:

> ("foo" ~~ /foo/).WHAT.say
(Match)
> ("foo" ~~ /bar/).WHAT.say
Nil

As per S03 you can use "so" to force a Bool value:

> ("foo" ~~ /foo/).so
True
> ("foo" ~~ /bar/).so
False

But that's only a minor point, the assignment to a constant works for all 
versions.

Reply via email to