Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for __FILE__ #112

Open
stevan opened this issue May 12, 2013 · 2 comments
Open

Add support for __FILE__ #112

stevan opened this issue May 12, 2013 · 2 comments

Comments

@stevan
Copy link
Member

stevan commented May 12, 2013

We should refactor the way we handle parsing of files so that we can keep track of the filename in the CompilationUnit AST node, this can then set FILE when it is evaluated.

@jjl
Copy link

jjl commented May 13, 2013

On 13 May 2013, at 00:35, Stevan Little [email protected] wrote:

We should refactor the way we handle parsing of files so that we can keep track of the filename in the CompilationUnit AST node, this can then set FILE when it is evaluated.

We should support idioms like flock(FILE) by making it a real FH as it is in p5

@stevan
Copy link
Member Author

stevan commented May 13, 2013

@jjl I was kind of trying to split the difference between Perl 5 and Perl 6 and make NAME a string (as it often is with Perl 5 (PACKAGE, etc)) and then $?NAME as the actual object (as it often is in Perl 5 ($?CLASS)). Which would mean that the file handle is actually in $?FILE maybe?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants