Front page | perl.perl6.language |
Postings from July 2002
Re: What's MY.line?
Thread Previous
|
Thread Next
From:
Dan Sugalski
Date:
July 10, 2002 16:05
Subject:
Re: What's MY.line?
Message ID:
a05111b0fb9526b00dd3e@[63.120.19.221]
At 10:12 PM +0000 7/10/02, Rafael Garcia-Suarez wrote:
>Chip Salzenberg wrote in perl.perl6.language :
>> In (re?)examining the Apocalypses, I've found something that confuses me a
>> bit. A2 refers to C<MY> as a "pseudopackage" and says:
>>
>> __LINE__ becomes MY.line
>> __FILE__ " MY.file
>>
>[...]
>>
>> With regard to C<MY>:
>>
>> 2. What are "line" and "file"? Properties? Class variables?
>> (Probably not class variables since C<MY> is not called a class.)
>
>That's the implementation problem ;-)
>In perl 5, __LINE__, __FILE__ and __PACKAGE__ are replaced at
>compile-time (in fact, at tokenizing-time) by the appropriate constants.
>The question is : to which kind of bytecode MY.file (etc.) get compiled ?
Well, unless they're accessible symbollically, there's no difference
between __LINE__ and MY.line. Just string constants to compare
against...
--
Dan
--------------------------------------"it's like this"-------------------
Dan Sugalski even samurai
dan@sidhe.org have teddy bears and even
teddy bears get drunk
Thread Previous
|
Thread Next