Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!feeder2.ecngs.de!ecngs!feeder.ecngs.de!Xl.tags.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!local2.nntp.ams.giganews.com!nntp.bt.com!news.bt.com.POSTED!not-for-mail NNTP-Posting-Date: Sat, 23 Mar 2013 05:58:45 -0500 From: "Chris Uppal" Newsgroups: comp.lang.java.programmer References: <171686ae-5239-4502-9ef3-65a68e8a1a1d@googlegroups.com> <514a53c7$0$32110$14726298@news.sunsite.dk> <514cf299$0$32107$14726298@news.sunsite.dk> Subject: Re: Final Fantasy 2 based game source code Date: Sat, 23 Mar 2013 10:59:09 -0000 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5512 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5512 X-RFC2646: Format=Flowed; Response Message-ID: Lines: 22 X-Usenet-Provider: http://www.giganews.com X-AuthenticatedUsername: NoAuthUser X-Trace: sv3-hhOITGeu3rEHjFCiPLtV5mUx8AM5fUxc4Se0i5Re4sE2NEzLBdRX4DQAYoL6kCQI2vAOqqSy3fftICS!E8z7hQkl6ct8tvHaT9m7y+w7nFiWt4YVm1+wj3ZaMrmLgf7YcHKEgx+ckUA6E5CzQx3Za1WELPWb X-Complaints-To: abuse@btinternet.com X-DMCA-Complaints-To: abuse@btinternet.com X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 X-Original-Bytes: 2364 Xref: csiph.com comp.lang.java.programmer:23091 Arne Vajhøj wrote: > It is possible to write OO code in C. > > And you code example is pretty OO'ish. > > The fact that the C language is not designed for OOP does > not make it impossible to write OO code - it just make > it a little bit harder. And such techniques are (or have been) used to write C in OO style in the "real world". I first came across the technique in the mid/late 1980s in the source for the "fig" drawing tool. It struck me as an elegant and powerful way of structuring code although I knew nothing of OO at the time (but, looking back, I can see that my own code -- pre-"fig" -- was already edging towards what I would later call "OO"). -- chris