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

Re: Perl 6 code - a possible compile, link, run cycle

Thread Previous
From:
Adam Kennedy
Date:
August 26, 2005 01:40
Subject:
Re: Perl 6 code - a possible compile, link, run cycle
Message ID:
20050826010008.27473.qmail@lists.develooper.com
Ingo Blechschmidt wrote:
> Hi,
> 
> Yuval Kogman wrote:
> 
>>On Thu, Aug 25, 2005 at 15:42:28 +0200, Ingo Blechschmidt wrote:
>>
>>>This section will contain all information needed:
>>>* User-defined operators
>>>* Other symbols exported by "is export"
>>>* Exported macros
>>
>>Okay, this raises a distinction:
>>
>>Compile time exports
>>Runtime exports
> 
> 
> Well, all exports happen at compile-time, but you're right, some exports
> (regular subs) will probably not be used before runtime.

Excuse my stupid question, but what about the equivalent Perl 6 case to 
the following.

use Module qw{symbol};

BEGIN {
	die "Not ready to compile" if symbol();
}

Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About