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

[REBOL] Re: 'within? not found into View 1.2.10 ... ? : the solution!

From: Christophe::Coussement::mil::be at: 1-Sep-2003 14:01

Hi fellow Rebolers, After minimalizing my code (2000+ LOC written two years ago) until I could distinguish the bug, I had to conclude I was not overriding the definition of 'within?, which was my first hypothesis. The truth was much more simple (shame on me!), and I hope the solution will eventualy help others... When using the encap (in my case: REBOL/Encap 1.2.0.3.1, in the last SDK/Cmd): my-ctx: context [ #include %../source/view.r #include %../source/mezz.r view center-face layout [ choice data ["a" "b" "c"] ] ] will cause the error mentionned. Extracting the libs from the context is the solution: #include %../source/view.r #include %../source/mezz.r my-ctx: context [ view center-face layout [ choice data ["a" "b" "c"] ] ] The reason is, I suppose IMHO, the bin code from REBOL which is added during the Encap process is added outside the context I defined, so it could not access the requested 'within? function, which was protected by the context. I'm - again - one lesson richer today ;-) ==xtof