Google 網路論壇不再支援新的 Usenet 貼文或訂閱項目,但過往內容仍可供查看。

[perl #39851] [BUG] .HLL doesn't reset the .namespace

瀏覽次數:5 次
跳到第一則未讀訊息

Matt Diephouse

未讀,
2006年7月16日 下午6:09:252006/7/16
收件者:bugs-bi...@rt.perl.org
# New Ticket Created by Matt Diephouse
# Please include the string: [perl #39851]
# in the subject line of all future correspondence about this issue.
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=39851 >


Switching HLLs with C< .HLL > doesn't reset the namespace. This leads
to some confusing bugs. Parrot should assume C< .namespace > whenever
it sees C< .HLL '...', '...' >.

mini:~/Projects/parrot mdiep$ cat test.pir
.HLL '_Tcl', ''
.namespace ['Foo'; 'Bar']

.HLL 'Tcl', ''

.sub main :main
$P0 = get_namespace
$P0 = $P0.'name'()
$S0 = join "::", $P0
print $S0 # should print "tcl", but actually prints "tcl::Foo::Bar"
print "\n"
end
.end

mini:~/Projects/parrot mdiep$ parrot test.pir
tcl::Foo::Bar
mini:~/Projects/parrot mdiep$

--
Matt Diephouse

Allison Randal via RT

未讀,
2007年4月14日 晚上11:19:012007/4/14
收件者:perl6-i...@perl.org
Fixed in r18215.
0 則新訊息