[parrot/parrot] bacd9d: [abc] Fix issue with accessing a variable named '...

noreply at github.com noreply at github.com
Thu Oct 20 13:13:45 UTC 2011

  Branch: refs/heads/master
  Home:   https://github.com/parrot/parrot

  Commit: bacd9ddc25977ec1f9f8851b1ae1340228c054a6
  Author: pmichaud <pmichaud at pobox.com>
  Date:   2011-10-20 (Thu, 20 Oct 2011)

  Changed paths:
    M examples/languages/abc/abc.pir
  M examples/languages/abc/src/parser/actions.nqp

  Log Message:
  [abc]  Fix issue with accessing a variable named 'abc' (TT #161 / GH #178)

Previously, all variables were being stored in the 'abc' hll root namespace,
but this namespace also contained entries for parts of the compiler itself.
Therefore, requesting 'abc' as a variable would return a namespace instead
of null/zero.

I fixed the problem by creating a special abc::vars namespace for holding
all variables (and only variables).

This patch also tries to fix exponentiation by loading the 'trans_ops'
library, but for some reason that isn't working.  I'll file a new ticket
for that.

More information about the parrot-commits mailing list