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
[EMAIL PROTECTED]                         have teddy bears and even
                                       teddy bears get drunk

Reply via email to