Wolfgang Meyer wrote:
Hi,Vladimir N. Dzhivsanoff wrote:No. The value of a thread statement depends on what is written between "thread" and "end". For example:... 1. thread .... end is value of thread-type ?X = thread 42 end % X will be 42. This is just syntactic sugar for local A in thread A = 42 end X = A... - For what reason are needed the variables of thread-type ? Show, please, examples of it.See the documentation: http://www.mozart-oz.org/home/doc/base/thread.html http://www.mozart-oz.org/home/doc/tutorial/node8.htmlWolfgang _________________________________________________________________________________mozart-users mailing list [email protected] http://www.mozart-oz.org/mailman/listinfo/mozart-users
1. X will has thread type ? What is thread type ? what is value of
thread type ?
2. I compile local X in X=thread 42 end end into core language, a rusult is:
local X Proc1 in
proc dynamic {Proc1}
X = 42
end
{`Thread.create` Proc1}
end
- what is "proc dynamic {Proc1} ... end {`Thread.create` Proc1} ?
"thread ... end" is syntax sugar for it ?
- Why procedure name of {`Thread.create` Proc1} is not variable
identifier but atom ?
- what is "proc dynamic" ? dynamic - is keyword of Oz ? _________________________________________________________________________________ mozart-users mailing list [email protected] http://www.mozart-oz.org/mailman/listinfo/mozart-users
