home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / lang / pascal / 6725 < prev    next >
Encoding:
Internet Message Format  |  1992-11-19  |  1.8 KB

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!bu.edu!wang!news
  2. From: s2861785@techst02.technion.ac.il (Alon Ziv)
  3. Newsgroups: comp.lang.pascal
  4. Subject: Re: Turbo and Procs/Fns as params..
  5. Message-ID: <S2861785.92Nov19085756@techst02.technion.ac.il>
  6. Date: 19 Nov 92 08:57:56 GMT
  7. References: <1992Nov4.190755.25383@polaris.utu.fi> <mByRTB4w165w@digsol.jpunix.com> <1992Nov11.104939.14727@jyu.fi> <1992Nov11.111534.1@uwovax.uwo.ca> <1e6qnoINNnr6@matt.ksu.ksu.edu> <dmurdoch.163.721919129@mast.queensu.ca> <SHEN.92Nov16212135@nil.IRO.UMontreal.CA>
  8. Sender: news@wang.com
  9. Organization: /u1/023/s2861785/.organization
  10. Lines: 33
  11.  
  12. In article <SHEN.92Nov16212135@nil.IRO.UMontreal.CA> shen@nil.IRO.UMontreal.CA (Yu Shen) writes:
  13.  
  14. [...stuff deleted]
  15.  
  16.    I just have a related problem that it seemed to me that member
  17.    function can not be as value for such procedure variable.
  18.  
  19. [.sig deleted]
  20.  
  21. This is just one example of the serious defect in TP Func/Proc
  22. parameters: that is, all that is passed is a pointer to the code, and
  23. not the scope. This limits the use of Func/Proc parameters to global
  24. procedures and functions, and disallows passing the address of a
  25. nested function, for instance. 
  26.  
  27. [ As an aside, in some TurboVision units you DO have to pass such a
  28.   function; however, this is done [ugh!] by passing pointers around and
  29.   using dirty ASSEMBLY tricks to get it working... And it's
  30.   incompatible even with StonyBrook Pascal+, which is the nearest
  31.   thing to 'TP-compatible'... ]
  32.  
  33. -az
  34. ---
  35. Internet:    s2861785@tx.technion.ac.il               . __
  36.     I'M A STUDENT: When I'm wrong, it's my teacher's fault      _|  /
  37.     (when I'm right, the credit is all mine!)         / | /_
  38.                                 Alon Ziv
  39.  
  40. --
  41. Internet:    s2861785@tx.technion.ac.il               . __
  42.     I'M A STUDENT: When I'm wrong, it's my teacher's fault      _|  /
  43.     (when I'm right, the credit is all mine!)         / | /_
  44.                                 Alon Ziv
  45.