[REBOL] How to write files
I was trying the new browser plug-in with an app and I have run across a question. How would you suggest writing a file to another server (other than the one that is hosting the reblet)? I was using ftp but it doesn't seem to work in this context. I suppose this is a general question about writing files outside of ftp'ing them. Please forgive my ignorance of how these Internet protocols work. Thanks in advance, James -- To unsubscribe from this list, just send an email to [EMAIL PROTECTED] with unsubscribe as the subject.
[REBOL] [style] Feeling REBOLish (was: Notes on seeding 'random/seed)
Good stuff, Gregg! I like yours better with two exceptions... randomize: func [ "Reseed the random number generator with 'now/precise." /with seed [date! time! integer!] "Enter your own seed." ][ random/seed any [seed to-integer checksum/secure form now/precise] ] It is more REBOLish to have an explicit refinement (just like 'random and 'random/seed), so this is a definite improvement. Replacing 'either with 'any is also an improvement. Part of the whole problem with 'random/seed in the first place is that there was not enough detail given to know the type of arguments accepted. I want to be specific about the usage _and_ the implementation. The user should know _explicitly_ what the seed is when the user asks for help (and not just when the user goes to the source i.e. >>source randomize). This info is often lacking in REBOL functions, especially natives. >> help randomize USAGE: RANDOMIZE /with seed DESCRIPTION: Reseed the random number generator with 'now/precise. RANDOMIZE is a function value. REFINEMENTS: /with seed -- Enter your own seed. (Type: date time integer) ... versus ... >> help random USAGE: RANDOM value /seed /secure /only DESCRIPTION: Returns a random value of the same datatype. RANDOM is an action value. ARGUMENTS: value -- Maximum value of result (Type: any) REFINEMENTS: /seed -- Restart or randomize ;
[REBOL] Re: back from idate
LOL!!! PS I removed them... I don't want this to be logged ;-) -MAx --- "all members combined, this signature will have waisted almost 1MB of bandwidth and an hour of human time." > -Original Message- > From: Hallvard Ystad [mailto:[EMAIL PROTECTED] > Sent: Monday, March 22, 2004 7:04 PM > To: [EMAIL PROTECTED] > Subject: [REBOL] back from [idate] > > > > Hi list > > Has anyone got a quick little function to get idates back > into the date! datatype? > > (Maxim, Tim, see the brackets in the subject line?) > > Thanks, > HY > > Prætera censeo Carthaginem esse delendam > > > -- > To unsubscribe from this list, just send an email to > [EMAIL PROTECTED] with unsubscribe as the subject. > > -- To unsubscribe from this list, just send an email to [EMAIL PROTECTED] with unsubscribe as the subject.
[REBOL] Re: just a reminder about using topic tags...
MAx: > but they aren't set on the notification sent to this list... Okay, okay! Enough people have asked for fuller information on the notices sent to the ML. I'll adjust the setting -- but probably not until the weekend. Meanwhile, here's two things you can do on www.rebol.org 1. As Ammon, says, log on to the Library, and set up or adjust your personal notices settings: --Control panel Update profile and personal preferences --Notices. Set what notices you want, how often you want them (the triggers) and how detailed you want the content. 2. Also, when logged on to the Library, you can get a sneak preview of the notices yet to be sent to the ML: --Control panel Display notices -- ignore the fact that it probably says you have no unsent notices. Click it anyway. --Display Mailing List notices -- this is a full set of outstanding notices for the ML Sunanda. -- To unsubscribe from this list, just send an email to [EMAIL PROTECTED] with unsubscribe as the subject.
[REBOL] preserving file permissions?
Hey guys, will using the /binary refinements of read and write preserve file permissions exactly? I'd like to write something to copy my home directory into an arbitrary number of directories. I want all the hidden files, and all the permissions preserved. has anyone done this already? thanks! -- signature flying: "whoosh!" -tom -- To unsubscribe from this list, just send an email to [EMAIL PROTECTED] with unsubscribe as the subject.
[REBOL] Re: back from [idate]
Hallvard: > Has anyone got a quick little function to get idates back into the date! > datatype? No, but I have a quick hack: xx: to-idate now loop 2 [replace skip xx 5 " " "/"] type? first load skip xx 5 Sunanda -- To unsubscribe from this list, just send an email to [EMAIL PROTECTED] with unsubscribe as the subject.
[REBOL] back from [idate]
Hi list Has anyone got a quick little function to get idates back into the date! datatype? (Maxim, Tim, see the brackets in the subject line?) Thanks, HY Prætera censeo Carthaginem esse delendam -- To unsubscribe from this list, just send an email to [EMAIL PROTECTED] with unsubscribe as the subject.
[REBOL] Re: just a reminder about using topic tags...
that is true, I would personally lobby for the default notification to include all the information as many users prolly won't be able to find the settings easily... Enjoy!! ~~Ammon ;~> - Original Message - From: "Maxim Olivier-Adlhoch" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, March 22, 2004 4:43 PM Subject: [REBOL] Re: just a reminder about using topic tags... > > yeah > > > but they aren't set on the notification sent to this list... > > > -MAx > --- > "You can either be part of the problem or part of the solution, but in the end, being part of the problem is much more fun." > > > > -Original Message- > > From: Ammon Johnson [mailto:[EMAIL PROTECTED] > > Sent: Monday, March 22, 2004 6:34 PM > > To: [EMAIL PROTECTED] > > Subject: [REBOL] Re: just a reminder about using topic tags... > > > > > > > > Max, the extra info you seek is available in your preferences on > > REBOL.org... > > > > Enjoy!! > > ~~Ammon ;~> > > > > > > - Original Message - > > From: "Maxim Olivier-Adlhoch" <[EMAIL PROTECTED]> > > To: <[EMAIL PROTECTED]> > > Sent: Monday, March 22, 2004 4:10 PM > > Subject: [REBOL] Re: just a reminder about using topic tags... > > > > > > > > > > > Max: Give me an example, if you would. Or :-) let me guess.. > > > > I just posted a message with subject: function? > > > > You would like to see it as subject: [function?] > > > > > > yep! > > > > > > > If I'm wrong, let me know, if not, then I've got it. > > > > > > too late! > > > > > > > Now, I'll take your idea just a step further. I've frequently > > > > seen subjects in which the topic changes (and sometimes more than > > > > once) IMHO, *change* the [topic] tag where appropriate. > > > > > > yes! because otherwise we end up with sorted info which > > does not reflect > > listed topic. > > > > > > actually I think with or without topic, the subjects should change a > > little bit more often when they do fork... > > > > > > > > > > All adds to rebol resources > > > > > > cooperation amongt peers, goes a long way look how > > rebol.org has improved > > within the last year... most of that is through user request. > > > > > > they really listen, yes they do! :-) > > > > > > > > > > Some MLs send out periodic auto-messages with protocols, > > tips etc. > > > > > > rebol.org already is doing this with its weekly updates... > > > > > > I wish the mail had a little bit more of the fields which > > rebol.org allows > > though... at least a link to it, and even the name of the author!? > > > > > > > > > -MAx > > > > > > "This isn't a signature" > > > > > > > > > > > > -- > > > To unsubscribe from this list, just send an email to > > > [EMAIL PROTECTED] with unsubscribe as the subject. > > > > > > > > > > > > > > > > > -- > > To unsubscribe from this list, just send an email to > > [EMAIL PROTECTED] with unsubscribe as the subject. > > > > > > -- > To unsubscribe from this list, just send an email to > [EMAIL PROTECTED] with unsubscribe as the subject. > > > -- To unsubscribe from this list, just send an email to [EMAIL PROTECTED] with unsubscribe as the subject.
[REBOL] Re: just a reminder about using topic tags...
yeah but they aren't set on the notification sent to this list... -MAx --- "You can either be part of the problem or part of the solution, but in the end, being part of the problem is much more fun." > -Original Message- > From: Ammon Johnson [mailto:[EMAIL PROTECTED] > Sent: Monday, March 22, 2004 6:34 PM > To: [EMAIL PROTECTED] > Subject: [REBOL] Re: just a reminder about using topic tags... > > > > Max, the extra info you seek is available in your preferences on > REBOL.org... > > Enjoy!! > ~~Ammon ;~> > > > - Original Message - > From: "Maxim Olivier-Adlhoch" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Monday, March 22, 2004 4:10 PM > Subject: [REBOL] Re: just a reminder about using topic tags... > > > > > > > Max: Give me an example, if you would. Or :-) let me guess.. > > > I just posted a message with subject: function? > > > You would like to see it as subject: [function?] > > > > yep! > > > > > If I'm wrong, let me know, if not, then I've got it. > > > > too late! > > > > > Now, I'll take your idea just a step further. I've frequently > > > seen subjects in which the topic changes (and sometimes more than > > > once) IMHO, *change* the [topic] tag where appropriate. > > > > yes! because otherwise we end up with sorted info which > does not reflect > listed topic. > > > > actually I think with or without topic, the subjects should change a > little bit more often when they do fork... > > > > > > > All adds to rebol resources > > > > cooperation amongt peers, goes a long way look how > rebol.org has improved > within the last year... most of that is through user request. > > > > they really listen, yes they do! :-) > > > > > > > Some MLs send out periodic auto-messages with protocols, > tips etc. > > > > rebol.org already is doing this with its weekly updates... > > > > I wish the mail had a little bit more of the fields which > rebol.org allows > though... at least a link to it, and even the name of the author!? > > > > > > -MAx > > > > "This isn't a signature" > > > > > > > > -- > > To unsubscribe from this list, just send an email to > > [EMAIL PROTECTED] with unsubscribe as the subject. > > > > > > > > > > -- > To unsubscribe from this list, just send an email to > [EMAIL PROTECTED] with unsubscribe as the subject. > > -- To unsubscribe from this list, just send an email to [EMAIL PROTECTED] with unsubscribe as the subject.
[REBOL] Re: just a reminder about using topic tags...
Max, the extra info you seek is available in your preferences on REBOL.org... Enjoy!! ~~Ammon ;~> - Original Message - From: "Maxim Olivier-Adlhoch" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, March 22, 2004 4:10 PM Subject: [REBOL] Re: just a reminder about using topic tags... > > > Max: Give me an example, if you would. Or :-) let me guess.. > > I just posted a message with subject: function? > > You would like to see it as subject: [function?] > > yep! > > > If I'm wrong, let me know, if not, then I've got it. > > too late! > > > Now, I'll take your idea just a step further. I've frequently > > seen subjects in which the topic changes (and sometimes more than > > once) IMHO, *change* the [topic] tag where appropriate. > > yes! because otherwise we end up with sorted info which does not reflect listed topic. > > actually I think with or without topic, the subjects should change a little bit more often when they do fork... > > > > All adds to rebol resources > > cooperation amongt peers, goes a long way look how rebol.org has improved within the last year... most of that is through user request. > > they really listen, yes they do! :-) > > > > Some MLs send out periodic auto-messages with protocols, tips etc. > > rebol.org already is doing this with its weekly updates... > > I wish the mail had a little bit more of the fields which rebol.org allows though... at least a link to it, and even the name of the author!? > > > -MAx > > "This isn't a signature" > > > > -- > To unsubscribe from this list, just send an email to > [EMAIL PROTECTED] with unsubscribe as the subject. > > > -- To unsubscribe from this list, just send an email to [EMAIL PROTECTED] with unsubscribe as the subject.
[REBOL] Re: just a reminder about using topic tags...
> Max: Give me an example, if you would. Or :-) let me guess.. > I just posted a message with subject: function? > You would like to see it as subject: [function?] yep! > If I'm wrong, let me know, if not, then I've got it. too late! > Now, I'll take your idea just a step further. I've frequently > seen subjects in which the topic changes (and sometimes more than > once) IMHO, *change* the [topic] tag where appropriate. yes! because otherwise we end up with sorted info which does not reflect listed topic. actually I think with or without topic, the subjects should change a little bit more often when they do fork... > All adds to rebol resources cooperation amongt peers, goes a long way look how rebol.org has improved within the last year... most of that is through user request. they really listen, yes they do! :-) > Some MLs send out periodic auto-messages with protocols, tips etc. rebol.org already is doing this with its weekly updates... I wish the mail had a little bit more of the fields which rebol.org allows though... at least a link to it, and even the name of the author!? -MAx "This isn't a signature" -- To unsubscribe from this list, just send an email to [EMAIL PROTECTED] with unsubscribe as the subject.
[REBOL] Re: Rebol/ View dll do-browser crashing browser
Yes I do have the evaluate function. I was replacing browse with do-browser so that I could pass up code to the html page to load the page in the _main browser window. The search bar, which you see when you click on the search button on your browsers chrome, is in a window named _search, so if you want to open a page in the main window that called the search window you have to have the following: window.open(url,"_main"); anyway I really don't understand how do- browser should be affecting this, I mean that do-browser should only be called when I click on a button in the rebol view form. yet nonetheless if I start that page I get the errors outlined on loading the page, yet as also noted these errors are not 100% of the time, but around 70%. The most logical thing would be a memory leak somewhere, but my system doesn't seem to be using any excessive resources. > Hello! Two questions: > > 1) Do you have the evaluate function in your HTML page code? > 2) Why are you replacing browser with do- browser? browse still works > great for launching the web browser. > > Josh > > -Original Message- > From: [EMAIL PROTECTED] [mailto:rebol- [EMAIL PROTECTED] On Behalf > Of [EMAIL PROTECTED] > Sent: Sunday, March 21, 2004 7:12 AM > To: [EMAIL PROTECTED] > Subject: [REBOL] Rebol/ View dll do- browser crashing browser > > Hi, I was adapting Kevin Adams search2.r to > be a searchbar in explorer, pretty much I > just went through and replaced browse/only > with do-browser some extra joins, it works > only, not very often, about 70% of the time > it crashes the browser, if the browser opens > with the searchbar window open it crashes as > well basically if the searchbar crashes the > browser once, it will restart about 3-4 > times before it stops crashing. > > I sort of find that annoying. > > now it was completely fine before I added in > do-browser, only then of course every time I > did a search and clicked on the button it > opened a new browser instance. So I assume > it has to be do-browser, only as one can see > from the code here do-browser is also called > by buttons being pushed: > > > about: layout [ > backdrop 219.219.219 > h1 "Search Center" 28.52.86 > text "Version 1.2.0" > text "written by Kevin Adams, > [EMAIL PROTECTED]" > button "okay" [unview] 70x20 effect > [gradient 0.0.0] > ] > > win1: layout/size [ > backdrop 219.219.219 > h1 "Search Center" 28.52.86 > guide > pad 20 > button "Section One" [panels/pane: > panel1 show panels] 85x20 effect > > [gradient 0.0.0] > button "Section Two" [panels/pane: > panel2 show panels] 85x20 effect > > [gradient 0.0.0] > button "About" [view/new center-face > about] 85x20 effect [gradient 0.0.0] > button "Quit" [quit] 85x20 effect > [gradient 0.0.0] > return > box 2x270 28.52.86 > return > panels: box 180x280 > ] 350x350 > > panel1: layout [ > backdrop 219.219.219 > across > > h2 "Dictionary Search" 28.52.86 > return > > word_to_lookup2: field 120 [ > ] > button "Go" 30 effect [gradient > 0.0.0] [ > do-browser join "go('" join > > [http://www.m-w.com/cgi-bin/dictionary "? > book=dictionary&va=" > > word_to_lookup2/text] "')" > > ] > > return > h2 "Google Search" 28.52.86 > return > > word_to_lookup3: field 120 [ > ] > button "Go" 30 effect [gradient 0.0.0] [ > do-browser join "go('" join > ["http://www.google.com/search?q="; > > word_to_lookup3/text "&btnG=Google+Search"] " > ')" > ] > > return > h2 "Yahoo Search" 28.52.86 > return > > word_to_lookup6: field 120 [ > ] > button "Go" 30 effect [gradient 0.0.0] [ > do-browser join "go('" join > ["http://search.yahoo.com/bin/search?p="; > > word_to_lookup6/text ] "')" > ] > > return > h2 "Slashdot Search" 28.52.86 > return > > word_to_lookup1: field 120 [ > ] > button "Go" 30 effect [gradient 0.0.0] [ >do-browser join "go('" join > > ["http://slashdot.org/search.pl? > query="word_to_lookup1/text ] "')" > ] > > ] > > panel2: layout [ > backdrop 219.219.219 > across > > return > h2 "Image Search" 28.52.86 > return > > word_to_lookup4: field 120 [ > ] > button "Go" 30 effect [gradient 0.0.0] [ > do-browser join "go('" join > > ["http://images.google.com/images? num=20&q=" > word_to_lookup4/text > > "&btnG=Google+Search"] "')" > ] > > return > h2 "Usenet Search" 28.52.86 > return > > word_to_lookup5: field 120 [ > ] > button "Go" 30 effect [gradient 0.0.0] [ >do-browser join "go('" join > ["http://groups.google.com/groups?q="; > > word_to_lookup5/text "&hl=&btnG=Google+Search > "] "')" > ] > > return > h2 "eBay Search" 28.52.86 > return > > word_to_lookup7: field 120 [ > ] > button "Go" 30 effect [gradient 0.0.0] > [ >do-browser join "go('" join
[REBOL] Re: just a reminder about using topic tags...
* Maxim Olivier-Adlhoch <[EMAIL PROTECTED]> [040322 11:46]: > I just wanted to remember that people using [topic] tags in their > subject lines have the benefit of having their stuff sorted in a clean > and obvious list on rebol.org. Max: Give me an example, if you would. Or :-) let me guess.. I just posted a message with subject: function? You would like to see it as subject: [function?] If I'm wrong, let me know, if not, then I've got it. Now, I'll take your idea just a step further. I've frequently seen subjects in which the topic changes (and sometimes more than once) IMHO, *change* the [topic] tag where appropriate. All adds to rebol resources > I wish more of us would continue putting [tags] on our subjects... > > http://www.rebol.org/cgi-bin/cgiwrap/rebol/ml-topic-index.r > > I guess many rebolers didn't even know(remember) about this usefull page. Some MLs send out periodic auto-messages with protocols, tips etc. > its already usefull, but if the [topic] where more identified, > especially on informative replies, then many more subjects would be > grouped together... > sorry for being anal about this ;-) You're *not* being anal. I think you're *right on* "You can observe a lot by just watching." - Yogi B. thanks tim > -MAx > --- > "You can either be part of the problem or part of the solution, but in the end, > being part of the problem is much more fun." > > > -- > To unsubscribe from this list, just send an email to > [EMAIL PROTECTED] with unsubscribe as the subject. -- Tim Johnson <[EMAIL PROTECTED]> http://www.alaska-internet-solutions.com -- To unsubscribe from this list, just send an email to [EMAIL PROTECTED] with unsubscribe as the subject.
[REBOL] just a reminder about using topic tags...
I just wanted to remember that people using [topic] tags in their subject lines have the benefit of having their stuff sorted in a clean and obvious list on rebol.org. I wish more of us would continue putting [tags] on our subjects... http://www.rebol.org/cgi-bin/cgiwrap/rebol/ml-topic-index.r I guess many rebolers didn't even know(remember) about this usefull page. its already usefull, but if the [topic] where more identified, especially on informative replies, then many more subjects would be grouped together... sorry for being anal about this ;-) -MAx --- "You can either be part of the problem or part of the solution, but in the end, being part of the problem is much more fun." -- To unsubscribe from this list, just send an email to [EMAIL PROTECTED] with unsubscribe as the subject.
[REBOL] Re: Rebol/ View dll do-browser crashing browser
Hello! Two questions: 1) Do you have the evaluate function in your HTML page code? 2) Why are you replacing browser with do-browser? browse still works great for launching the web browser. Josh -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Sunday, March 21, 2004 7:12 AM To: [EMAIL PROTECTED] Subject: [REBOL] Rebol/ View dll do-browser crashing browser Hi, I was adapting Kevin Adams search2.r to be a searchbar in explorer, pretty much I just went through and replaced browse/only with do-browser some extra joins, it works only, not very often, about 70% of the time it crashes the browser, if the browser opens with the searchbar window open it crashes as well basically if the searchbar crashes the browser once, it will restart about 3-4 times before it stops crashing. I sort of find that annoying. now it was completely fine before I added in do-browser, only then of course every time I did a search and clicked on the button it opened a new browser instance. So I assume it has to be do-browser, only as one can see from the code here do-browser is also called by buttons being pushed: about: layout [ backdrop 219.219.219 h1 "Search Center" 28.52.86 text "Version 1.2.0" text "written by Kevin Adams, [EMAIL PROTECTED]" button "okay" [unview] 70x20 effect [gradient 0.0.0] ] win1: layout/size [ backdrop 219.219.219 h1 "Search Center" 28.52.86 guide pad 20 button "Section One" [panels/pane: panel1 show panels] 85x20 effect [gradient 0.0.0] button "Section Two" [panels/pane: panel2 show panels] 85x20 effect [gradient 0.0.0] button "About" [view/new center-face about] 85x20 effect [gradient 0.0.0] button "Quit" [quit] 85x20 effect [gradient 0.0.0] return box 2x270 28.52.86 return panels: box 180x280 ] 350x350 panel1: layout [ backdrop 219.219.219 across h2 "Dictionary Search" 28.52.86 return word_to_lookup2: field 120 [ ] button "Go" 30 effect [gradient 0.0.0] [ do-browser join "go('" join [http://www.m-w.com/cgi-bin/dictionary "? book=dictionary&va=" word_to_lookup2/text] "')" ] return h2 "Google Search" 28.52.86 return word_to_lookup3: field 120 [ ] button "Go" 30 effect [gradient 0.0.0] [ do-browser join "go('" join ["http://www.google.com/search?q="; word_to_lookup3/text "&btnG=Google+Search"] " ')" ] return h2 "Yahoo Search" 28.52.86 return word_to_lookup6: field 120 [ ] button "Go" 30 effect [gradient 0.0.0] [ do-browser join "go('" join ["http://search.yahoo.com/bin/search?p="; word_to_lookup6/text ] "')" ] return h2 "Slashdot Search" 28.52.86 return word_to_lookup1: field 120 [ ] button "Go" 30 effect [gradient 0.0.0] [ do-browser join "go('" join ["http://slashdot.org/search.pl? query="word_to_lookup1/text ] "')" ] ] panel2: layout [ backdrop 219.219.219 across return h2 "Image Search" 28.52.86 return word_to_lookup4: field 120 [ ] button "Go" 30 effect [gradient 0.0.0] [ do-browser join "go('" join ["http://images.google.com/images?num=20&q="; word_to_lookup4/text "&btnG=Google+Search"] "')" ] return h2 "Usenet Search" 28.52.86 return word_to_lookup5: field 120 [ ] button "Go" 30 effect [gradient 0.0.0] [ do-browser join "go('" join ["http://groups.google.com/groups?q="; word_to_lookup5/text "&hl=&btnG=Google+Search "] "')" ] return h2 "eBay Search" 28.52.86 return word_to_lookup7: field 120 [ ] button "Go" 30 effect [gradient 0.0.0] [ do-browser join "go('" join ["http://search.ebay.com/search/search.dll? MfcISAPICommand=GetResult&ht=1&Sor tProperty=MetaEndSort&query=" word_to_lookup7/text "&x=-567&y=-92"] "')" ] return h2 "Stock Quote" 28.52.86 return word_to_lookup8: field 120 [ ] button "Go" 30 effect [gradient 0.0.0] [ do-browser join "go('" join ["http://finance.yahoo.com/q?s="; word_to_lookup8/text "&d=v3"] "')" ] ] panel1/offset: 0x0 panel2/offset: 0x0 panels/pane: panel1 view center-face win1 'go' is just a function in my javascript, as follows: function go(url){ window.open(url,"_main",""); } to get it to open in the new browser window. The helpful IE error message is: --- iexplore.exe - Application Error --- The instruction at "0x77fcb007" referenced memory at "0x00650070". The memory could not be "written". Click on OK to terminate the program --- OK --- -- To unsubscribe from this list, just send an email to [EMAIL PROTECTED] with unsubscribe as the subject. -- To unsubscribe from this list, just send an email to [EMAIL PROTECTED] with unsubscribe as the subject.
[REBOL] Re: function?
* Maxim Olivier-Adlhoch <[EMAIL PROTECTED]> [040322 10:41]: > > I'll add that > > a word of the form :word is a get-word! datatype. > and using your (and my) example, the following form also works if you > are in the global namespace (like when you're in the console) Thanks to Max and Gabrielle. All really good info> regards tim > function? get 'forall > > get returns value of the word instead of evaluating it. > > -MAx > > > > -Original Message- > > From: Tim Johnson [mailto:[EMAIL PROTECTED] > > Sent: Monday, March 22, 2004 1:51 PM > > To: [EMAIL PROTECTED] > > Subject: [REBOL] function? > > > > > > > > This is strange: (to me anyway) > > >> help function? > > USAGE: > > FUNCTION? value > > > > DESCRIPTION: > > Returns TRUE for function values. > > FUNCTION? is an action value. > > > > ARGUMENTS: > > value -- (Type: any-type) > > > > ;; OKAY let's find a function > > >> help forall > > USAGE: > > FORALL 'word body > > > > DESCRIPTION: > > Evaluates a block for every value in a series. > > FORALL is a function value. > > > > ARGUMENTS: > > word -- Word set to each position in series and changed > > as a result (Type: word) > > body -- Block to evaluate each time (Type: block) > > > > (SPECIAL ATTRIBUTES) > > throw > > ;; test forall > > >> function? 'forall > > == false > > > > ;; Say What!? I'm missing something here. > > ;; what did I do wrong? > > > > thanks > > tim > > -- > > Tim Johnson <[EMAIL PROTECTED]> > > http://www.alaska-internet-solutions.com > > -- > > To unsubscribe from this list, just send an email to > > [EMAIL PROTECTED] with unsubscribe as the subject. > > > > > > -- > To unsubscribe from this list, just send an email to > [EMAIL PROTECTED] with unsubscribe as the subject. -- Tim Johnson <[EMAIL PROTECTED]> http://www.alaska-internet-solutions.com -- To unsubscribe from this list, just send an email to [EMAIL PROTECTED] with unsubscribe as the subject.
[REBOL] Re: function?
function? :forall you must supply a function VALUE for function to return true. if you don't prepend the function name by a colon, then the function is -obviously- evaluated. function? get in system/words 'forall is another way to do it... it even lets you find functions in objects. -MAx --- "You can either be part of the problem or part of the solution, but in the end, being part of the problem is much more fun." > -Original Message- > From: Tim Johnson [mailto:[EMAIL PROTECTED] > Sent: Monday, March 22, 2004 1:51 PM > To: [EMAIL PROTECTED] > Subject: [REBOL] function? > > > > This is strange: (to me anyway) > >> help function? > USAGE: > FUNCTION? value > > DESCRIPTION: > Returns TRUE for function values. > FUNCTION? is an action value. > > ARGUMENTS: > value -- (Type: any-type) > > ;; OKAY let's find a function > >> help forall > USAGE: > FORALL 'word body > > DESCRIPTION: > Evaluates a block for every value in a series. > FORALL is a function value. > > ARGUMENTS: > word -- Word set to each position in series and changed > as a result (Type: word) > body -- Block to evaluate each time (Type: block) > > (SPECIAL ATTRIBUTES) > throw > ;; test forall > >> function? 'forall > == false > > ;; Say What!? I'm missing something here. > ;; what did I do wrong? > > thanks > tim > -- > Tim Johnson <[EMAIL PROTECTED]> > http://www.alaska-internet-solutions.com > -- > To unsubscribe from this list, just send an email to > [EMAIL PROTECTED] with unsubscribe as the subject. > > -- To unsubscribe from this list, just send an email to [EMAIL PROTECTED] with unsubscribe as the subject.
[REBOL] Re: function?
I'll add that a word of the form :word is a get-word! datatype. and using your (and my) example, the following form also works if you are in the global namespace (like when you're in the console) function? get 'forall get returns value of the word instead of evaluating it. -MAx > -Original Message- > From: Tim Johnson [mailto:[EMAIL PROTECTED] > Sent: Monday, March 22, 2004 1:51 PM > To: [EMAIL PROTECTED] > Subject: [REBOL] function? > > > > This is strange: (to me anyway) > >> help function? > USAGE: > FUNCTION? value > > DESCRIPTION: > Returns TRUE for function values. > FUNCTION? is an action value. > > ARGUMENTS: > value -- (Type: any-type) > > ;; OKAY let's find a function > >> help forall > USAGE: > FORALL 'word body > > DESCRIPTION: > Evaluates a block for every value in a series. > FORALL is a function value. > > ARGUMENTS: > word -- Word set to each position in series and changed > as a result (Type: word) > body -- Block to evaluate each time (Type: block) > > (SPECIAL ATTRIBUTES) > throw > ;; test forall > >> function? 'forall > == false > > ;; Say What!? I'm missing something here. > ;; what did I do wrong? > > thanks > tim > -- > Tim Johnson <[EMAIL PROTECTED]> > http://www.alaska-internet-solutions.com > -- > To unsubscribe from this list, just send an email to > [EMAIL PROTECTED] with unsubscribe as the subject. > > -- To unsubscribe from this list, just send an email to [EMAIL PROTECTED] with unsubscribe as the subject.
[REBOL] Re: function?
Hi Tim, On Monday, March 22, 2004, 7:51:08 PM, you wrote: >>> function? 'forall TJ> == false >> function? :forall == true >> type? 'forall == word! >> function? get 'forall == true Regards, Gabriele. -- Gabriele Santilli <[EMAIL PROTECTED]> -- REBOL Programmer Amiga Group Italia sez. L'Aquila --- SOON: http://www.rebol.it/ -- To unsubscribe from this list, just send an email to [EMAIL PROTECTED] with unsubscribe as the subject.
[REBOL] function?
This is strange: (to me anyway) >> help function? USAGE: FUNCTION? value DESCRIPTION: Returns TRUE for function values. FUNCTION? is an action value. ARGUMENTS: value -- (Type: any-type) ;; OKAY let's find a function >> help forall USAGE: FORALL 'word body DESCRIPTION: Evaluates a block for every value in a series. FORALL is a function value. ARGUMENTS: word -- Word set to each position in series and changed as a result (Type: word) body -- Block to evaluate each time (Type: block) (SPECIAL ATTRIBUTES) throw ;; test forall >> function? 'forall == false ;; Say What!? I'm missing something here. ;; what did I do wrong? thanks tim -- Tim Johnson <[EMAIL PROTECTED]> http://www.alaska-internet-solutions.com -- To unsubscribe from this list, just send an email to [EMAIL PROTECTED] with unsubscribe as the subject.