home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 7056 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  2.0 KB

  1. Path: nntp.hut.fi!usenet
  2. From: oahvenla@hyppynaru.cs.hut.fi (Osma Ahvenlampi)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: OpenLibrary() on .datatypes & .classes
  5. Date: 08 Apr 1996 18:13:55 +0300
  6. Organization: What, me, organised?
  7. Sender: oahvenla@hyppynaru.cs.hut.fi
  8. Distribution: Earth
  9. Message-ID: <jdjwx3q6958.fsf@hyppynaru.cs.hut.fi>
  10. References: <DpJL5A.Jy5@gpu.utcc.utoronto.ca>
  11. NNTP-Posting-Host: hyppynaru.cs.hut.fi
  12. Mime-Version: 1.0
  13. Content-Type: text/plain; charset=US-ASCII
  14. In-reply-to: normb@gpu.utcc.utoronto.ca's message of Mon, 8 Apr 1996 11:55:57
  15.     GMT
  16. X-Newsreader: Gnus v5.1
  17.  
  18. In article <DpJL5A.Jy5@gpu.utcc.utoronto.ca> normb@gpu.utcc.utoronto.ca (Norman Baccari) writes:
  19. >I've noticed that if you use OpenLibrary() on .datatypes and .classes you can
  20. >get the same information that you would when you use it on a library, IE
  21. >the IDString, version,revision, etc. My RKRMs say nothing (that I could find)
  22. >on this. I have had no problems/enforcer hits doing this. Is this "legal"??
  23.  
  24. Umm.. I suppose you mean that you get a valid struct Library *. Yes,
  25. you do. .class, .gadget, .image, and .datatype are special forms of
  26. .library, which on the other hand is a special form of the Exec
  27. loadable library file, as is .device. The difference between devices
  28. and libraries is the number of reserved LVOs in the beginning (the
  29. bias for the first function LVO), whereas the diffrence between
  30. libraries in SYS:Classes and in SYS:Libs is that while classes may
  31. have .library-like public function LVOs, those usually are not the
  32. real point of the library. Instead, opening a BOOPSI library (which
  33. these are) will make the library's initialization code add a new
  34. BOOPSI class to the system. BOOPSI classes are called by invoking
  35. object methods by sending messages to them with the DoMethod() and
  36. similar functions.
  37.  
  38. -- 
  39. A conclusion is simply the place where you got tired of thinking. 
  40. | "Osma Ahvenlampi" <mailto:oa@iki.fi> <http://www.iki.fi/oa/> |
  41. | Amiga&BeBox&ClassAct&Voodoo&ARTech cool stuff: I-Net225&AWeb |
  42.                                                               --
  43.