From: frenchc AT cadvision DOT com (Calvin French) Newsgroups: comp.os.msdos.djgpp Subject: Re: OOP and ALLEGRO Date: 13 May 1997 05:22:52 GMT Organization: Reham Salad Lines: 26 Message-ID: <5l8trc$1dve@elmo.cadvision.com> References: <3370A52D DOT 5372 AT mailbox DOT swipnet DOT se> NNTP-Posting-Host: ts13ip198.cadvision.com Mime-Version: 1.0 Content-Type: Text/Plain; charset=US-ASCII To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk In article <3370A52D DOT 5372 AT mailbox DOT swipnet DOT se>, krystyna DOT de DOT heras AT mailbox DOT swipnet DOT se says... > >Hi there! > >I have a peculiar question. Can I mix Object-Oriented-Programming with >ALLEGRO. I'm porting my turbo pascal code and want to improve it by make >it object oriented so that I can have a non-fix amount of coords in a >coord-vector. > >Allegro is C and OOP is CC/C++. Is it possible to just include OOP in >C-files and compile? > >Wondering in the cold dark Sweden/ Pablo de Heras Yes. I have found that this works wonderfully. Far better than if Allegro was native OO, since *I* get to decide how I want things implemented. I eat/breathe/sleep OO (I cringe at the thought of having a non const-correct function) and I love allegro. Of course, it would be nice if someone coded a library in native OO that was identical to my implementation of allegro, but that would be rather inflexible nevermind unlikely. Keep it C!!! - Calvin -