Damian Conway wrote:
> Bzzzt! The line:
> 
>         %MY::{'$x'} = \$z;
> 
> assigns a reference to $z to the *symbol table entry* for $x, not to $x itself.

So I should have said:

  %MY::{'$x'} = $z;

That's pretty magical stuff isn't it? Sorry I used the wrong syntax.
I'm just taking it from your "Perl 6 Overview" PDF slides. This stuff
changes *fast*, eh?

If I want to bind a sub, do I use:

  %MY::{'&die'} = &my_die;  # reference to sub my_die? (from slides)

or

  %MY::{'&die'} = my_die;   # magical symbol table assignment rule?

> "3, 1, 3" is the correct answer.

That's what I thought. Dan's not going to be happy. ;)

- Ken

Reply via email to