[REBOL] Re: Global Variables
From: tim:johnsons-web at: 30-Oct-2001 11:16
Hi John: I have to leave my office as I write.
When I return, I will monitor the list to see whether
you have received adequate answers. (It is likely that you
will by then have received information from more experienced rebol
programmers than I... :>) )
On Tue, Oct 30, 2001 at 01:12:40PM -0600, office wrote:
> I'm not sophisticated enough in REBOL to know how to articulate this. I
> have a lot of really great scripts and want to make some of the "Functions"
> usable without actually re coding the scripts. It would also be handy to
> change things like attributes in one place as well.
> For example, I use a REBOL script to name files with a standard sorting
> file name based on date_time sent to the directory and the names look like
> something like this:
> The code is in a function called fmt_time: in a file named fmt_time.r
> I would like to be able to call that routine from within any script with a
> call, ie..
> fmt_time cgi/2 (without adding the code into the same file)
> Can you give me the steps to accomplish this? Do I need to make these
> changes from the console, can they be done by running a file, will I need
> to rerun the file after booting?
> Thanks.. John
> At 08:12 AM 10/30/2001 -0900, you wrote:
> >On Tue, Oct 30, 2001 at 11:00:03AM -0600, office wrote:
> > > Is it possible to write global variables or global functions and call them
> > > from other scripts?
> > >
> > > //john
> >Hello John:
> > Perhaps you mean to "import" a "library" file as in
> > do %stdlib.r
> > now 'html-newline becomes a global variable.
> > I am referring specifically to script files that
> > I (believe) I sent you.
> > You may then make a global "constant" by
> > protect 'htm-newline
> > Is this what you are looking for?
> >Tim Johnson <[tim--johnsons-web--com]>
> > http://www.johnsons-web.com
> >To unsubscribe from this list, please send an email to
> >[rebol-request--rebol--com] with "unsubscribe" in the
> >subject, without the quotes.
> To unsubscribe from this list, please send an email to
> [rebol-request--rebol--com] with "unsubscribe" in the
> subject, without the quotes.
Tim Johnson <[tim--johnsons-web--com]>