今天我正在练习“七周七种语言”的 Io 示例。
示例代码:
futureResult := URL with("http://google.com/") @fetch
writeln("Do something immediately while fetch goes on in background...")
writeln("This will block until the result is available.")
writeln("fetched ", futureResult size, " bytes")
运行时出现异常:
Io$ io future.io
Exception: Object does not respond to 'URL'
---------
Object URL future.io 1
CLI doFile Z_CLI.io 140
CLI run IoState_runCLI() 1
直接在io中运行URL,出现以下错误:
~$ io
Io 20110905
Io> URL
Exception: Object does not respond to 'URL'
---------
Object URL Command Line 1
Io>
我的环境是:
Ubuntu 14.04
最佳答案
已关注 post ,我做了以下工作:
$ sudo apt-get install libevent-dev
$ ./build.sh
$ ./build.sh install
网址错误已修复。 但抛出以下错误:
Do something immediately while fetch goes on in background... This will block until the result is available. fetched Exception: Error does not respond to 'size' --------- Error size
future.io 6 Error size future.io 6 CLI doFile Z_CLI.io 140 CLI run
IoState_runCLI() 1
Post帮助安装 Io
关于iolanguage - Io语言: Exception: Object does not respond to 'URL' ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25078127/