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

[REBOL] Re: VID: clear-fields - how to improve it

From: brett:codeconscious at: 28-Mar-2003 13:46

My first thought (haven't tried it) is that the functionality could be either part of the feel object or part of the style object. I would probably lean to it being a part of the style/face object (just like INIT) as a block that can be bound and evaluated by the clear-fields function at a later time. So the clear-fields function is modified to just evaluate the face/clear-fields block with some of the existing code in the function being moved to the face/clear-fields block. In this way it allows the functionality to be specified in a consistent way with the rest of VID and allows for future custom styles. I wouldn't be suprised if this approach could be generalised for other uses (validate-fields?). Regards, Brett.