REBOL Programming/flag-face

USAGE:Edit

FLAG-FACE face 'flag 

DESCRIPTION:Edit

Sets a flag in a VID face.

FLAG-FACE is a function value.

ARGUMENTSEdit

  • face -- (Type: object)
  • flag -- (Type: any)

SOURCE CODEEdit

flag-face: func [
    "Sets a flag in a VID face." 
    face [object!] 
    'flag
][
    if none? face/flags [face/flags: copy [flags]] 
    if not find face/flags 'flags [face/flags: copy face/flags insert face/flags 'flags] 
    append face/flags flag
]
Last modified on 27 October 2012, at 22:08