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 Stdin.readBytes() #146

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

mhermier
Copy link
Contributor

Add Stdin.readBytes().

Stdin.readByte() cannot be trusted with bytes > 127 (aka any non ascii-7).
Fixing it would require quite some modifications in wren (fixing is quite a can of worm because String[NumSeq] is ultimately broken, and would require a primitive to handle ByteArray[NumSeq] anyway).

While waiting for this to be resolved, Stdin.readBytes() can be added for cheap to make the access to the console bytes usable in the meantime.

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.

1 participant