Talk:Reflective programming: Difference between revisions

Content deleted Content added
TuXie (talk | contribs)
m Task 70: Update syntaxhighlight tags - remove use of deprecated <source> tags
Line 226:
 
Truly reflective language, worth mention! The original example:
<sourcesyntaxhighlight lang="rebol">
foo: make object! [
hello: does [print "Hello"]
Line 236:
; with reflection
do get in foo to-word "hello"
</syntaxhighlight>
</source>
 
Fully featured example:
<sourcesyntaxhighlight lang="rebol">
foo: func [/local name code start-mark end-mark] [
name: ask "What is your name?^/"
Line 255:
)
]
</syntaxhighlight>
</source>
Running the code:
<pre>