@@ -46,7 +46,7 @@ julia> fetch(f)
4646function check_args_2 (args... )
4747 na = length (args)
4848 if na== 1
49- role = :(role = :default )
49+ role = Expr ( :kw , :role , :( :defaut )) # :(role = :default)
5050 expr = args[1 ]
5151 elseif na== 2
5252 role = args[1 ]
@@ -107,7 +107,7 @@ julia> fetch(f)
107107function check_args_3a (args... )
108108 na = length (args)
109109 if na== 2
110- role = :(role = :default )
110+ role = Expr ( :kw , :role , :( :defaut )) # :(role = :default)
111111 p = args[1 ]
112112 expr = args[2 ]
113113 elseif na== 3
123123macro spawnat (args... )
124124 rolearg, p, expr = check_args_3a (args... )
125125
126- # @info rolearg, typeof(rolearg)
126+ # @info rolearg, typeof(rolearg)
127127
128128 thunk = esc (:(()-> ($ expr)))
129129 var = esc (Base. sync_varname)
@@ -132,7 +132,7 @@ macro spawnat(args...)
132132 else
133133 spawncall = :(spawnat ($ (esc (p)), $ thunk; $ (esc (rolearg))))
134134 end
135- quote
135+ quote
136136 local ref = $ spawncall
137137 if $ (Expr (:islocal , var))
138138 put! ($ var, ref)
@@ -247,7 +247,7 @@ function check_args_3b(args...)
247247
248248 na = length (args)
249249 if na== 1
250- rolearg = :(role = :default )
250+ rolearg = Expr ( :kw , :role , :( :defaut )) # :(role = :default)
251251 reducer = nothing
252252 loop = args[1 ]
253253 elseif na== 2
@@ -256,7 +256,7 @@ function check_args_3b(args...)
256256 reducer = nothing
257257 loop = args[2 ]
258258 else
259- rolearg = :(role = :default )
259+ rolearg = Expr ( :kw , :role , :( :defaut )) # :(role = :default)
260260 reducer = args[1 ]
261261 loop = args[2 ]
262262 end
0 commit comments