On Thu Jan 29 02:16:23 2009, jonat...@jnthn.net wrote:
> .sub 'main'
>     $S0 = 'foo'
>     example('foo'=>42) # works
> #   example($S0=>42)   # what I want to work also
> .end
> 
> .sub 'example'
>     .param pmc foo :named('foo')
>     say foo
> .end
> 
> Uncomment the line I commented out, and IMCC gives a syntax error.


IMCC currently allows this "name"=>value syntax in three places: in a
.return directive, in an argument list to a subroutine, and in a target
list of returned values:

  .return("name"=>value)
  MySub("name"=>value)
  ("name"=>value) = MySub()

I assume that we want to be able to use SREGs (and string variables) in
all of these places? Or, are we looking to be more general to try and
include all stringifiable registers and variables here? 

-- 
Andrew Whitworth
a.k.a Whiteknight


Reply via email to