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

Fix behaviour of FileInput.eof() #181

Merged
merged 2 commits into from
Oct 18, 2021
Merged

Conversation

tobil4sk
Copy link
Member

Fixed the behaviour of sys.io.FileInput.eof(). Previously, it was not consistent with other targets which meant that nodejs couldn't be tested with the other sys targets in the Haxe repository. I looked at how Haxe wraps this behaviour for C# and implemented it like that.

Used the c# implementation for reference, now it passes the sys tests
in the compiler repository
@Simn
Copy link
Member

Simn commented Oct 18, 2021

The leading underscore naming here seems a bit unusual...

@tobil4sk
Copy link
Member Author

tobil4sk commented Oct 18, 2021

My thinking behind that is that it's not an actual part of the cross platform API for sys.io.File (also there was the obvious conflict with eof and the eof method). I see now that the other member variables are not either; I'll push a change to remove the underscores in a sec. (Done)

@Simn Simn merged commit 854a0cf into HaxeFoundation:master Oct 18, 2021
@tobil4sk tobil4sk deleted the eof-fix branch October 20, 2021 18:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants