我是Squeak和Smalltalk的新手但不是一般的编程(我有一些Python经验).
我理解Squeak环境中存在的各种工具,如工作区,系统浏览器以及Smalltalk语言结构.我理解它们是如何孤立地工作的,但我不确定如何将它们作为一个整体使用.
我的问题是在Squeak开发时的典型工作流程是什么.据我了解
I open squeak.
I create a Class in the System Browser.
I then write/test/execute code in the Workspace, adding methods
to my class based on the code I tried out in the Workspace.
Rinse and repeat for other classes.
Run Code Online (Sandbox Code Playgroud)
以上是典型的小公司,或者是我错过的东西.其他一般提示/陷阱(如果有的话)将不胜感激.
谢谢.
顺便说一句,我确实搜索了这个并阅读了一些教程,但没有得到任何令人满意的答案,所以没有lmgtfy链接请;)
我已经安装了OPAM并运行初始化并更新了我的.bashrc代码.然后我安装了ocamlfind包,它成功了.但是,当我尝试
#use "topfind";;
Run Code Online (Sandbox Code Playgroud)
我得到以下内容
Cannot find file topfind
Run Code Online (Sandbox Code Playgroud)
我在Opensuse 12.2上运行了从源代码构建的ocaml 4.00.1.
我想对return语句的优先级稍作澄清,这似乎违反了一般优先规则.
例如表达式
^ 2 + 3.
Run Code Online (Sandbox Code Playgroud)
返回5(这是我想要的)但是它不应该只返回2,因为^是一个的一元运算符优先于+是二进制的+?