home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / lang / modula2 / 1567 < prev    next >
Encoding:
Text File  |  1992-12-15  |  1.2 KB  |  39 lines

  1. Newsgroups: comp.lang.modula2
  2. Path: sparky!uunet!mcsun!sunic!ugle.unit.no!alf.uib.no!pd200!ob
  3. From: ob@ifi.uib.no  (Ole-Bjorn Tuftedal)
  4. Subject: Re: Generic stack implementation
  5. Message-ID: <921215114732@pd200>
  6. Nntp-Software: PC/TCP NNTP
  7. Lines: 23        
  8. Sender: usenet@alf.uib.no (Bergen University Newsaccount)
  9. Reply-To: ob@ifi.uib.no
  10. Organization: University of Bergen, Norway
  11. References: <9212091316.AA14856@elg> <911288c.32.724187845@ace.acadiau.ca>
  12. Date: Tue, 15 Dec 1992 11:47:32
  13. Lines: 24
  14.  
  15. 911288c@ace.acadiau.ca (HON (EDWIN) KIN CHUNG) writes
  16.  
  17. >      FOR wordcount := 0 TO size DIV TSIZE(WORD) - 1 DO
  18. >         item[wordcount] := location^;
  19. >         INC(location, TSIZE(WORD));
  20.                 ^^^^^^
  21.                 parameter not correct type ??
  22.  
  23.                 Is this some problem ...???
  24.                 I am using TopSpeed Modular-2.
  25.  
  26.                 Can anybody help ??
  27.  
  28. The code was tested in Logitech Modula-2 (now Multiscope/StonyBrook).
  29.  
  30. The type ADDRESS (from module SYSTEM) is compatible with pointers - 
  31. it is a POINTER TO WORD.
  32.  
  33. The (first) argument to INC can a.o. be integer, cardinal, address, 
  34. char, an enumeration type.
  35.  
  36. Good luck,
  37. Ole-Bjorn Tuftedal
  38.  
  39.