home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / lang / pascal / 7859 < prev    next >
Encoding:
Internet Message Format  |  1993-01-05  |  975 b 

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!uwm.edu!spool.mu.edu!wupost!psuvax1!psuvm!jxu3
  2. Organization: Penn State University
  3. Date: Tue, 5 Jan 1993 01:58:17 EST
  4. From: <JXU3@psuvm.psu.edu>
  5. Message-ID: <93005.015817JXU3@psuvm.psu.edu>
  6. Newsgroups: comp.lang.pascal
  7. Subject:    Passing functions as params in Turbo Pascal
  8. Lines: 14
  9.  
  10. While ISO Standard Pascal (as defined by Jensen and Wirth) allows
  11. passing functions as parameters to other functions or procedures,
  12. Turbo Pascal 6.0 that I use at school, declares an error that an
  13. identifier is expected, which means that I cannot pass functions
  14. as parameters in the standard way.  For all you TP experts on the
  15. net, is there a workaround? e.g. something like defining pointers
  16. to functions as one might do in C?  Thanks in advance for any help
  17. in this matter. I desperately need this feature, so that I don't
  18. have to write a separate integration procedure for every function
  19. I want to integrate.
  20.  
  21. Atul Ramani
  22. PSUVM
  23. ===========
  24.