On Sun, 2003-08-17 at 14:11, Nigel Rantor wrote:
> Can anyone provide me with any info as to whether or not he is correct?

not so sure that memory usage is the proper reason, unless you're
talking about scads and scads of symbols.  for example, you wouldn't
want to import all of POSIX just for one constant.

the main reasons not to export are that exporting can pollute your
namespace and exporting strictly isn't necessary.

if you use the Class->method or $object->method syntax, nothing needs to
be exported, and thus you can override even static methods by using @ISA
in a descendant class.  for that reason, the Class->method syntax is
preferable to the Class::method version.


that said, with some modules the whole purpose, as you mentioned, is to
import some functions, so it's completely a matter of design and taste.

-- 
muppet <scott at asofyet dot org>


Reply via email to