home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / sys / amiga / programm / 17661 < prev    next >
Encoding:
Internet Message Format  |  1992-12-21  |  1.8 KB

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