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

[REBOL] Re: Passing arguments to a function in another script

From: warren:howsoft at: 7-Feb-2008 15:51

Thanks a lot Gregg - once again!
>When you run this code, you should see two errors about misplaced
items in the console. Is that not happening? No, 'cos I was using Linux rather than Windows, and their ain't no Rebol console! For the same reason, I have to use "Alert" rather than "Print" for testing purposes.
>You can't set the vars inside LAYOUT, because LAYOUT is a dialected
function. True, it understands plain REBOL code in certain areas, and you can set words to face references, but you want to separate your regular code from your UI layout code. In fact, I tried a version similar to yours and found it not to work for some reason. In my state of confusion I must have done something stupid though: your version certainly works. Since I am starting my learning with Vid rather than Core, this probably encourages me to regard Core as a subset of Vid, which it is not. I would certainly be happier if it were! As you say, VID seems to understand Core in certain areas, but a noob doesn't know which ones! The fact that I cannot set two simple numeric variables in Vid is disappointing. However, from what I have read about the great advantages of dialects, I think that the experts are likely to disagree with my reactions expressed above, and I am in no way qualified to judge this issue at my stage of learning. Nevertheless, my beginner's difficulty might provide some food for thought. By the way, the reason I am studying this is because I want to use the script for converting to/from UTF-8 that you recommended to me yesterday**. Rather than embed this script (or selected functions from it) in my own script, I want to keep it separate. [** One thing to clarify about this issue is that the file names with accents are certainly displayed correctly by the Ubuntu File Manager. So why I should need to convert them to Western (ISO-8859-15) for Rebol to read them correctly perhaps requires a bit of elucidation.] Best regards, Bob ------------------------------------------------------ Gregg Irwin wrote: