home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!pipex!warwick!uknet!gdt!bsmail!ccsw
- From: ccsw@bristol.ac.uk (Steff Watkins)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: Does opening libraries require a fixed varname?
- Message-ID: <1992Dec21.120329.19630@bristol.ac.uk>
- Date: 21 Dec 92 12:03:29 GMT
- References: <BzDnFz.FM5@usenet.ucs.indiana.edu>
- Organization: University of Bristol, England
- Lines: 36
-
- In article <BzDnFz.FM5@usenet.ucs.indiana.edu> shulick@navajo.ucs.indiana.edu writes:
- >
- >If I wanted, for instance, to open intuition.library, does the line
- >*HAVE* to be:
- >
- >IntuitionBase = OpenLibr.......
- >
- >Can it be something like "IBase = OpenLibrary(.." or "blech = Open..."
- >In other words, does it matter what you call the variable?
- >GadToolsBase, ExecBase, GfxBase, etc.
- >
-
- Hello.
-
- No, it doesn't matter what you name the variable that stores the base address
- of an opened library. You just have to make sure that you always use the same
- name within a code segment ie..
-
- If you use, IBase = OpenLibrary(, then later in the program, you must
- refer to IBase to get the intuition base pointer.
-
- OK?
-
- PS:- Oh yeah, while you're on the subject, a quick word of advice. Try to keep
- your variable names fairly self-explanatory/simple-to-remember. It's a
- pain having to check through a huge source code, because you can't remember
- what you named a variable.
-
-
- Steff *8)
- ===============================================================================
- = The opinions contained in this transmission are my own. No-one else's. =
- = My very own. They belong to me. They used to belong to my girlfriend. =
- = =
- = E-Mail:- Steff.Watkins@bristol.ac.uk Telephone:- +44 (272) 303531 =
- ===============================================================================
-