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

[REBOL] An interesting issue with View beta

From: anton::lexicon::net at: 8-May-2002 11:06

I ran some of my programs with the new view beta, and many of them suffered the same bug. Look at this code, which captures the essence of the situation: images: [ ... full of image!s ...] ; example fr: 1 ; start at frame one layout [ pic: image images/1 rate 30 feel [ engage: func [face action event][ if action = 'time [ fr: fr + 1 ; next frame face/image: images/fr ] ] ] ] You can see the reference to images inside the engage function. In the new view beta (1.2.5.3.1 6-May-2002), this reference no longer resolves to the images block defined at the beginning, as it used to. I am still trying to figure out why. I noted that the face object contains an 'images facet. But when probe images = face/images is inserted in the engage function it prints false. Anyone have any clues? I have read the changes doc, but I don't see anything obvious. Maybe it is due to the way paths are evaluated? I was able to fix the bug by simply using a different word (frames), but I want to understand why this has happened. It will probably become clear with more familiarity. Anton.