home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / sys / mac / programm / 12922 < prev    next >
Encoding:
Internet Message Format  |  1992-07-23  |  1.8 KB

  1. Path: sparky!uunet!gatech!europa.asd.contel.com!darwin.sura.net!haven.umd.edu!umd5!mac40-pg2.umd.edu!user
  2. From: de19@umail.umd.edu (Dana S Emery)
  3. Newsgroups: comp.sys.mac.programmer
  4. Subject: Re: Help with Think Pascal,C
  5. Message-ID: <de19-230792103455@mac40-pg2.umd.edu>
  6. Date: 23 Jul 92 14:53:53 GMT
  7. References: <Brr1Ep.ILM@csn.org>
  8. Sender: news@umd5.umd.edu
  9. Followup-To: comp.sys.mac.programmer
  10. Organization: Personal
  11. Lines: 32
  12.  
  13. In article <Brr1Ep.ILM@csn.org>, erich@csn.org wrote:
  14. > ....
  15. >   I am a skilled C programmer, but I have never written anything in
  16. > Pascal.  SO essentially I need to know which is easier:
  17. > Mixing Think C and Think Pascal modules
  18. > OR
  19. > Learning Pascal after knowing C very well.
  20.  
  21. Eric
  22.  
  23. First, you dont say whether you are planning to use objects, but you should
  24. know that (according to Symantec) C objects and Pascal objects *dont* mix
  25. at all.  The dynamic binding mechanisms are different, so if you are going
  26. to add C code to the Pascal project, the C code must not use objects from
  27. either side.
  28.  
  29. Second, you are going to have to write interfaces for both the Pascal and
  30. the C portions, so that each knows how to reference the other.  This is not
  31. easy to do or to debug, *you* are totaly responsible for making sure that
  32. this 'glue' doesnt *lie* on either side, as neither compiler has any way of
  33. helping you.  I would think it a significant impediment for someone who is
  34. ignorant of one of the 2 languages.
  35.  
  36. I would recommend that you learn Pascal-its not so hard, and you are going
  37. to need that knowledge to understand the Pascal code which you are
  38. modifying.  You might want to use some of your C thinking skills by
  39. pseudo-coding in C, then translating that to Pascal-eventually you will
  40. find yourself fluent in the new language, and can cease with the crutch.
  41. --
  42.  
  43. Dana S Emery <de19@umail.umd.edu>
  44.