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

[REBOL] Re: REBOL dynamic graph code problems and REBOL mindset

From: carl::cybercraft::co::nz at: 22-Feb-2008 11:42

On Friday, 22-February-2008 at 10:13:35 John Shea wrote,
>Hi Max, >another quick question to add to Tom's. > >When you set refresh-graph you have what looks like a 'has' modifier, not >that i can see one (so far) in the rebol docs, what does 'has' do ? is it a >precondition? Also in this statement I see no 'does' and yet the >refresh-graph seems to work like a called function - or is that what the >'has' does?
Yes, HAS, like DOES, is just a shortened function, with HAS allowing local words to be defined. ie...
>> x: does [] >> probe :x
func [][]
>> x: has [y][] >> probe :x
func [/local y][] -- Carl Read.