home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!gatech!usenet.ins.cwru.edu!agate!ames!olivea!gossip.pyramid.com!pyramid!oracle!unrepliable!bounce
- From: dnavas@oracle.uucp (David Navas)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: THANK YOU!! (ReadArgs()).. but I'm handling something wrong
- Message-ID: <1992Dec22.180841.6380@oracle.us.oracle.com>
- Date: 22 Dec 92 18:08:41 GMT
- References: <BzHsLC.8rJ@usenet.ucs.indiana.edu> <38083@cbmvax.commodore.com>
- Sender: usenet@oracle.us.oracle.com (Oracle News Poster)
- Organization: Oracle Corporation, Redwood Shores CA
- Lines: 31
- Nntp-Posting-Host: mailseq.us.oracle.com
- X-Disclaimer: This message was written by an unauthenticated user
- at Oracle Corporation. The opinions expressed are those
- of the user and not necessarily those of Oracle.
-
- In article <38083@cbmvax.commodore.com> jesup@cbmvax.commodore.com (Randell Jesup) writes:
- >2) It's best to define an enum or a bunch of defines, one
- >for each parameter in the template. This means that if you change the
- >template, all you have to do is change the enum/defines, instead of searching
- >through your source code.
-
- Well, that's better, but....
-
- What's best is to define a set of routines for your "state" variables which
- can be changed at run-time either via rexx or the command-line (run the
- program again? -- depends on the program, often times), and store these
- strings in some kind of localizable file.
-
- I've got the command-line reset working, the rexx stuff ready to be hooked
- up (more or less), but am lacking in the localizable area (this is for my
- WEB modules -- shameless, but short, plug).
-
- It's very handy, you write this interface once, and then all you have to do
- is give a state description for every one of your different programs.
- Really, quite nice :)
-
- What's even more fun is that, strictly speaking, all of these web programs
- are really just subclasses off of one Module_Services program, so they
- literally inherit this behaviour automatically, without a sizable
- increase in code size (a few bytes to make sure Module_Services is up
- and running :)).
-
- Frankly, that sort of thing would be nice to have in the OS....
-
- David C. Navas dnavas@oracle.com
- Working for, but not speaking on behalf of, Oracle Corp.
-