Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion A12: Exporation
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Uri Guttman  
View profile  
 More options Apr 23 2004, 11:21 pm
Newsgroups: perl.perl6.language
From: u...@stemsystems.com (Uri Guttman)
Date: Fri, 23 Apr 2004 23:21:03 -0400
Local: Fri, Apr 23 2004 11:21 pm
Subject: Re: A12: Exporation

>>>>> "DC" == Damian Conway <dam...@conway.org> writes:

  DC> I don't see why. Import to- and export from- a module could (and
  DC> probably should) be entirely orthogonal. So perhaps exportation should
  DC> be via mixin:

  DC>       use Foo «foo $foocount», our &bar;

  DC>       &foo      does export;
  DC>       $foocount does export(:MANDATORY);

  DC>       sub localsub does export {...}
  DC>       my $localvar does export;

  DC>       sub AUTOLOAD {...}         # implements &baz and &qux
  DC>       sub baz does export {...}  # stub for autoloaded sub

how would you handle %EXPORT_TAGS and @EXPORT_OK?

i do like marking each exportable thing with does export as that removes
the redunancy of the names in the declaration and the @EXPORTS. but it
trades it for many copies of does export which i think is ok.

uri

--
Uri Guttman  ------  u...@stemsystems.com  -------- http://www.stemsystems.com
--Perl Consulting, Stem Development, Systems Architecture, Design and Coding-
Search or Offer Perl Jobs  ----------------------------  http://jobs.perl.org


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.