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

Reserved Word Heartburn

3 views
Skip to first unread message

Luke Palmer

unread,
Nov 23, 2004, 7:33:41 PM11/23/04
to Internals List
IMCC yells at me when I say:

.namespace [ "Foo" ]

.sub new
...
.end

While it's tolerable for local symbols, subs really have to be
named according to the interface. Is it possible to allow:

.sub "new"
...
.end

?

Thanks,
Luke

Leopold Toetsch

unread,
Nov 24, 2004, 5:50:44 AM11/24/04
to Luke Palmer, perl6-i...@perl.org

> .namespace [ "Foo" ]

> .sub new
> ...
> .end

> .sub "new"
> ...
> .end

Should be rather simple, yes. Good idea.

> Thanks,
> Luke

leo

Leopold Toetsch

unread,
Nov 24, 2004, 11:15:42 AM11/24/04
to Luke Palmer, perl6-i...@perl.org
Luke Palmer <lu...@luqui.org> wrote:

> ... Is it possible to allow:

> .sub "new"
> ...
> .end

Done. Including:

$I0 = "new"()

Please note that currently the name of the PMC sub constant is passed
to PackFile code via sprintf/sscanf. This means that spaces and such are
not allowed, yet.

BTW it would be great if someone could go through the imcc docs, a lot
has changed recently, thanks.

> Thanks,
> Luke

leo

0 new messages