[REBOL] [no rugby - dbms - faq]
From: rebol665::ifrance::com at: 19-Jan-2002 12:34
Hi Rebollers
<OT> I am not Jean-Luc Picard but I have seen a lot of violation of the
prime directive here especially towards Maarten.
</OT>
<dbms> I have seen a looooot of things ! It seems that we are reinventing
mySQL which is not IMO what Gabriele wanted in the first place.
</dbms>
<faq>
How to get object function?
Short answer:
Using 'get in object-name 'function-name
Problen illustration:
We want to assign a function with another function which is defined in an
object.
Direct assignment is not allowed.
Example of direct assignment.
write: :print
write "Hello World!"
; Hello World!
Example with an object function
obj: make object! [
i: 3
print-i: does [print i]
]
fn: :obj/print-i
3
** Script Error: fn needs a value
** Where: do-boot
** Near: fn: :obj/print-i
Problem solution:
fn: get in obj 'print-i
fn
3
</faq>
Patrick
ps: The prime directive in Star Trek is "do not interfere". Jean-Luc Picard
is the captain of the starship Enterprise in Star Trek TNG