Re: [pure-lang-users] Proposed syntax changes
Status: Beta
Brought to you by:
agraef
From: Eddie R. <er...@bm...> - 2008-08-15 12:39:26
|
On Fri, 2008-08-15 at 13:13 +0200, Albert Graef wrote: > Albert Graef wrote: > > - search the directory of the script containing the using clause > > > > - failing that, search the cwd > > > > - failing that, search PURELIB > > Thinking about this some more, I realized that this is vunerable to code > injection. What if the user inadvertently puts a module named > 'primitives.pure' into the cwd? What if we want to override the primitives.pure for some strange reason that I cannot think of yet? Maybe we should have some mechanism like using <foo.pure> so that we know it's the one in the standard library? > Therefore I think that PURELIB should actually be searched before the > cwd (much like #include <foo.h> in C). Note that if the 'using' script > is in the cwd, then the cwd will still be searched first anyway. Also, > this will only apply to 'using' clauses, not to scripts specified on the > command line or with 'run'. |