Closed vendethiel closed 9 years ago
Note: that doesn't seem to be related to use of the "foreach" name.
I'm really not getting the hang of it:
pharen.repl> (defmacro my-do (&args) (do ~@body)) ;; missing quote here
"pharen\repl\my_do"
pharen.repl> (my-do (printf "a") (printf "b"))
Warning: array_pop() expects parameter 1 to be array, boolean given in pharen.php on line 2967
Warning: Invalid argument supplied for foreach() in pharen.php on line 2968
Fatal error: Call to a member function compile_return() on a non-object in pharen.php on line 2974
pharen.repl> (defmacro my-do (&args) '(do ~@body))
"pharen\repl\my_do"
pharen.repl> (my-do (printf "a") (printf "b"))
Warning: Invalid argument supplied for foreach() in pharen.php on line 2783
Notice: Undefined variable: __dotmpvar1 in repl.php(224) : eval()'d code on line 10
Null
Hey! Pharen looks interesting, but I'm getting some compile errors:
Gives:
Gives:
Fatal error: Call to a member function add_child() on a non-object in pharen.php on line 3987