develooper Front page | perl.perl6.language | Postings from January 2006

Re: facades, use_ok, and lexical export

Thread Previous
From:
Yuval Kogman
Date:
January 9, 2006 10:47
Subject:
Re: facades, use_ok, and lexical export
Message ID:
20060109184643.GC16233@woobling.org
What we need to do is find a way to do this at compile time.

One way is to make use_ok a macro.

The whole thing with linkage in Perl 6 is that it's supposed to
happen at compile time so that things are overall saner, but that it
can happen at runtime if we really really mean it.

use_ok as a function could simply import $module into the non
lexical scope because it's a runtime thing, unless it's made into a
macro/some other compile time construct, that is more declarative
in nature, and makes the whole process more opaque.

-- 
 ()  Yuval Kogman <nothingmuch@woobling.org> 0xEBD27418  perl hacker &
 /\  kung foo master: /me whallops greyface with a fnord: neeyah!!!!!!!


Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About