Here's another potential NS issue. It looks like find_global is being affected by the .namespace directive: it's my understanding it should only be affected by the .HLL directive. If you comment out the second .namespace in this code, it prints "ok".

.$ cat foo.pir
.HLL 'bork', ''
.namespace [ '' ]

.sub a :immediate
  $P1 = new .String
  $P1 = "ok\n"
  store_global "eek", $P1
.end

.namespace [ 'sub_namespace' ]

.sub whee :main

$P1 = find_global 'eek'
print $P1
.end
CokeZero:~/research/parrot/languages/tcl wcoleda$ ../../parrot foo.pir
Global 'eek' not found
current instr.: 'bork;sub_namespace;whee' pc 12 (foo.pir:14)

Reply via email to