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

[REBOL] Re: idea for pre-processing

From: robert:muench:robertmuench at: 20-Jun-2002 11:33

> -----Original Message----- > From: [rebol-bounce--rebol--com] [mailto:[rebol-bounce--rebol--com]]On Behalf Of > Anton > Sent: Thursday, June 20, 2002 5:51 AM > To: [rebol-list--rebol--com] > Subject: [REBOL] idea for pre-processing > The following two lines work the same: > > do %demo-trapezoid-morph.r > do read %demo-trapezoid-morph.r > > This means that you can make a wrapper around > 'do which will allow you to pre-process the file > before it is run.
Hi, just to be sure I understand this. You want to make an own 'read or use the system 'read?
> I want to optionally strip debugging lines in my > programs, so that they run at top speed without > them.
Yes, good idea. I would like to have such a thing as well. How about a more generic way: set-version [debug 1.01 beta] version debug [print "debug output"] version 1.01 [<normal-rebol-code>] With this you could easly configure the behaviour of your program. Don't know if this will lead to context problems. But something like a pre-processor etc. would be nice. This could even be expanded into a linker.
> Has anyone done something like this?
No, sorry but I'm interested. Robert