develooper Front page | perl.perl6.language | Postings from July 2005

Re: User-defined infix subs/methods?

Thread Previous | Thread Next
Larry Wall
July 12, 2005 14:10
Re: User-defined infix subs/methods?
Message ID:
On Tue, Jul 12, 2005 at 05:27:48PM +0800, Autrijus Tang wrote:
: On Sat, Jul 09, 2005 at 03:58:45PM -0700, Larry Wall wrote:
: > It should take a little more effort to mess with the minds of
: > unsuspecting modules, so maybe the standard syntax is cloned out of
: > *STANDARD_PERL_6 or some such scary package name.  It's the default for
: > starting all require-like Perl 6 parses.
: Note that this requirement is already satisfied, under the "separate
: compilation doctrine" in the hackathon notes.
: Each compilation unit needs to be compiled without any information to
: the symbols in the caller environment.  It may export symbols, but may
: not silently make use of caller's symbols, which naturally includes
: user-defined operators.

Good, I'd forgotten about that.  Which means that it's even harder
for someone to compile a module in a "strange" dialect, since they'd
essentially have to write their own version of "use" that forces
recompilation ("reuse", if you will).  And the harder we make it to
write "reuse", the better.


Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About