[英]Smalltalk throwing nextLine Error
For Smalltalk do we need to import some library to use nextLine? 对于Smalltalk,我们需要导入一些库以使用nextLine吗?
Transcript show: 'Whatz your name?'.
userName := stdin nextLine.
When I try to evaluate it throws an error. 当我尝试评估时,会引发错误。
Method #nextLine is implemented in Stream. 方法#nextLine在Stream中实现。 Stdin should be a stream. Stdin应该是一个流。 But "stdin" (with lowercase) is probably a typo. 但是“ stdin”(小写)可能是拼写错误。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.