Runtime evaluation/In an environment: Difference between revisions

Content deleted Content added
Line 101: Line 101:


=={{header|Genyris}}==
=={{header|Genyris}}==
The simplest way is to use a macro. In genyris, macros are lazy functions which execute twice, the return value is also evaluated in the caller's environment:
One way is to use a macro. In genyris, macros are lazy functions which execute twice, the return value is also evaluated in the caller's environment:
<lang python>
<lang python>
defmacro code() (+ x 100)
defmacro code() (+ x 100)