Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: repost [bind example]

From: lmecir:mbox:vol:cz at: 2-Nov-2002 21:15

Hi Pat, it is good to have simple and correct examples of BIND usage. Your example surely *is* correct. It has got only one disadvantage: it is fairly simple to do that without BIND, if we e.g. use the way Gabriele promotes: fn-calculate: function [ nb1 [decimal!] nb2 [decimal!] nb3 [decimal!] cb [block!] ] [f] [ f: func [nb1 nb2 nb3] cb f nb1 nb2 nb3 ] Your example surely has a didactical value and you can use it. Nevertheless, it may be useful to show the readers, that this "workaround" is possible as well. Moreover, Gabriele's "functional" approach looks safer sometimes (and more natural, at least for some users). When you posted your example, I tried to suggest a simple example, where BIND would be better, than a "functional" solution. Initially I considered my CFOR or SFUN implementation, but, unfortunately, I found out, that they didn't use BIND at all! Best regards -L