slsh's require breaks jed-extra

John E. Davis davis at space.mit.edu
Thu Jun 7 16:02:38 UTC 2007


On Thu, 7 Jun 2007 17:35:27 +0200, "G. Milde" <milde at users.sourceforge.net> said:
>I would prefer an optional "namespace" argument over the need to fix
>all these 23 modes with a "compatibility switch".
>
>The problem is the order of arguments:
>
>  require(feature, [[filename], namespace]]);
>  
>or 
>
>  require(feature, [[namespace], filename]]);

It has been my experience, that "feature" is not actually used except
as a filename.  In fact,

   require (filename [,namespace]);

should work.  Earlier versions of the require function (e.g., the one
distributed with 0.99-18) do not support namespaces.  In this sense,
there is no backward compatibility.

For slang-2.1, I thought about, but never pursued, adding qualifier
support to `require`, e.g.,

    require ("/path/to/foo"; namespace="bar");

In what way are you using require?
Thanks,
--John



More information about the Pkg-jed-devel mailing list