Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[perl #40960] [BUG] :multi namespace pollution

5 views
Skip to first unread message

Matt Diephouse

unread,
Nov 21, 2006, 2:04:08 AM11/21/06
to bugs-bi...@rt.perl.org
# New Ticket Created by Matt Diephouse
# Please include the string: [perl #40960]
# in the subject line of all future correspondence about this issue.
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=40960 >


Creating a :multi sub pollutes the namespace with a name-mangled
entry for that particular variant :multi variant. Namespace pollution
is bad, bad, bad.

For example:

.sub main :main
$P0 = new .String
$P0 = "foo bar"

# these both work - ick!
'multi'($P0)
'multi_@String'($P0)
.end

.sub multi :multi(String)
.param pmc str
say str
.end

--
Matt Diephouse

0 new messages