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

Trying to use newStringStream results in 'undeclared identifier' #11066

Closed
Zireael07 opened this issue Apr 20, 2019 · 5 comments · Fixed by #14095
Closed

Trying to use newStringStream results in 'undeclared identifier' #11066

Zireael07 opened this issue Apr 20, 2019 · 5 comments · Fixed by #14095

Comments

@Zireael07
Copy link

Zireael07 commented Apr 20, 2019

I am not able to use the newStringStream() function from streams module (stdlib), whether by itself or as part of the marshal library.

Example

import streams
var test = newStringStream("")
echo test

Current Output

Error: undeclared identifier: 'newStringStream'

Expected Output

It should just work, especially where marshal module is concerned.

Possible Solution

Additional Information

$ nim -v
Nim Compiler Version 0.19.4
@Araq
Copy link
Member

Araq commented Apr 20, 2019

No, you need to use import streams and learn the very basics of Nim.

@Araq Araq closed this as completed Apr 20, 2019
@Zireael07
Copy link
Author

Zireael07 commented Apr 20, 2019

I use import streams, and the problem also happens when trying to use $$ in marshal library, which definitely does import streams.

@Zireael07
Copy link
Author

Ah, wait, some more googling points to streams not working in JS target?

@Zireael07
Copy link
Author

I no longer use Nim, but thanks for fixing the issue <3

@Araq
Copy link
Member

Araq commented Apr 29, 2020

Well you should use Nim. ;-)

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

Successfully merging a pull request may close this issue.

3 participants