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

[REBOL] Re: Yet More VID Help...

From: anton::wilddsl::net::au at: 17-Apr-2006 3:11

Hi Charles, Yes, you found a craziness of the inbuilt list style. The block directly in the subfunc body, referenced by the local word stuff is indeed the only way to access the data. [If you write clipboard:// mold system/view/vid/vid-styles/list, you can see in the words dialect (search for "words:") that the data keyword uses compose/deep to put the user data into the block referenced by stuff. Totally crazy.] The solution is to get mad and launch into writing your own list style, firstly advertising its virtues, then defending its lack of features during its development from the attacks of others who feel let down by the marketing hype. But to solve your immediate problem; if you have a list named my-list: layout [my-list: list 100x200 data [...]] then, if not using a supply function, you can determine the list block with this: stuff: second second get in my-list 'subfunc That gets the second item in the body of subfunc. I can't remember an official doc of the all the built-in styles, but there are definitely many examples by various people here. Here's one of mine: do Regards, Anton.