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

[REBOL] Re: Event datatype

From: carl:cybercraft at: 31-Aug-2002 0:26

On 30-Aug-02, G. Scott Jones wrote:
> From: "Carl Read" > <snip> >> However, if you did understand the function fully and it doesn't >> actually need to know event is an event!, then I can't see any >> reason why you shouldn't do this. ie... >> e: event >> event: reduce [e/1 e/2 e/3 e/4 e/5 e/6 e/7 e/8] >> Other than checking if an event datatype really is an event >> datatype, >> is there anything else you can do with one other than referencing >> their values? > Hi, Carl, > I think you may be on to a good idea. I played a little with the > concept and discovered that your reduced block faithfully records > the data. Out of curiosity and as a double check on what Cyphre > mentioned, I tried making it into and event with: > my-event: make event! reduce [event/1 event/2 event/3 > event/4 event/5 event/6 event/7 event/8] and as predicted, > it did *not* work. Now, just need to find the right example in which > to experiment. No time today, though, to mess around with fun stuff. > Please let me know if you are successful using this approach.
As I said, I'd tried it with one function and it worked, but I have no idea if there'd be cases with that function where it'd trip up, or how many other functions it could be used with. I suspect it'll be okay with some but not with others. -- Carl Read