Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #23100
| From | Joshua Cranmer đ§ <Pidgeot18@verizon.invalid> |
|---|---|
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: Final Fantasy 2 based game source code |
| Date | 2013-03-23 23:01 -0500 |
| Organization | A noiseless patient Spider |
| Message-ID | <kiltmg$ku2$1@dont-email.me> (permalink) |
| References | (8 earlier) <mPGdncgJ-rJkvNHMnZ2dnUVZ8hOdnZ2d@bt.com> <kihsn4$1st$1@dont-email.me> <_JGdndJSO5_5ENHMnZ2dnUVZ7tWdnZ2d@bt.com> <kiia2i$qsf$1@dont-email.me> <co2dnYr3BfgZJ9HMnZ2dnUVZ8gKdnZ2d@bt.com> |
On 3/22/2013 3:09 PM, lipska the kat wrote:
> On 22/03/13 19:07, Joshua Cranmer đ§ wrote:
>> What I consider the core of OOP to be is the ability to specify an
>> abstract interface.
>
> All interfaces are abstract in Java so in the context of a discussion in
> a Java group I don't see the point.
We're discussing an abstract programming concept so by the term
"abstract interface" here I meant to refer to the theoretical concept
rather than the Java specific term. Although it turns out that Java's
interfaces map very nicely to abstract interfaces and vice versa.
>> The C code does
>> fit under that paradigm,
>
> I don't see it I'm afraid
Per my definition, it boils down to three things: abstraction,
polymorphism, and inheritance. Function pointers I hope we can both
agree satisfy polymorphism. Inheritance of implementation comes about by
having something like this:
int SuperStack_pop(Stack *s) {
int rv = Stack_pop(s);
/* do something else */
return rv;
}
Not as elegant as Java, but it works.
For the abstraction paradigm, note that it is possible to provide two
different implementations of stack methods that use the same interface.
You could use a sentinel stack, a circularly-linked list stack, or a
regular no-sentinel stack. You could get even more creative if you
abused the ability to type-pun in C and made the top node pointer do
something else. If it were a plain void *pImpl member (as is more common
in C OOP libraries) that the "class" could allocate at well, then
there's no limit to how many different implementations.
> This doesn't alter the fact that my C code is not Object Oriented
I would say you're thinking about it in the wrong terms. Programming
paradigms are nothing more than philosophies to structure code, so you
could easily write declarative, imperative, functional, and
object-oriented code all in the same language, and even the same code.
This is why I dislike calling languages "functional", "object-oriented",
etc.: it obscures the fact that these terms have really fuzzy boundaries
when applied to real-world languages and that what you have at best is a
spectrum that really refers to how easy it is to do something.
--
Beware of bugs in the above code; I have only proved it correct, not
tried it. -- Donald E. Knuth
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Final Fantasy 2 based game source code Turtle Wizard <elvishNOSPAM.healer@gmail.com> - 2013-03-19 22:26 +0100
Re: Final Fantasy 2 based game source code Lew <lewbloch@gmail.com> - 2013-03-19 18:49 -0700
Re: Final Fantasy 2 based game source code Fredrik Jonson <fredrik@jonson.org> - 2013-03-20 07:18 +0000
Re: Final Fantasy 2 based game source code "Qu0ll" <Qu0llSixFour@gmail.com> - 2013-03-20 20:28 +1100
Re: Final Fantasy 2 based game source code Fredrik Jonson <fredrik@jonson.org> - 2013-03-20 13:34 +0000
Re: Final Fantasy 2 based game source code Lew <lewbloch@gmail.com> - 2013-03-20 12:07 -0700
Re: Final Fantasy 2 based game source code Arne VajhĂžj <arne@vajhoej.dk> - 2013-03-20 20:26 -0400
Re: Final Fantasy 2 based game source code "Chris Uppal" <chris.uppal@metagnostic.REMOVE-THIS.org> - 2013-03-21 08:11 +0000
Re: Final Fantasy 2 based game source code "Qu0ll" <Qu0llSixFour@gmail.com> - 2013-03-21 20:58 +1100
Re: Final Fantasy 2 based game source code Lew <lewbloch@gmail.com> - 2013-03-21 12:29 -0700
Re: Final Fantasy 2 based game source code lipska the kat <"nospam at neversurrender dot co dot uk"> - 2013-03-21 20:34 +0000
Re: Final Fantasy 2 based game source code Arne VajhĂžj <arne@vajhoej.dk> - 2013-03-21 17:56 -0400
Re: Final Fantasy 2 based game source code Lew <lewbloch@gmail.com> - 2013-03-21 15:24 -0700
Re: Final Fantasy 2 based game source code lipska the kat <"nospam at neversurrender dot co dot uk"> - 2013-03-22 09:18 +0000
Re: Final Fantasy 2 based game source code Arved Sandstrom <asandstrom2@eastlink.ca> - 2013-03-22 07:15 -0300
Re: Final Fantasy 2 based game source code lipska the kat <"nospam at neversurrender dot co dot uk"> - 2013-03-22 13:54 +0000
Re: Final Fantasy 2 based game source code Daniel Pitts <newsgroup.nospam@virtualinfinity.net> - 2013-03-22 10:25 -0700
Re: Final Fantasy 2 based game source code lipska the kat <"nospam at neversurrender dot co dot uk"> - 2013-03-22 18:14 +0000
Re: Final Fantasy 2 based game source code Daniel Pitts <newsgroup.nospam@virtualinfinity.net> - 2013-03-22 13:22 -0700
Re: Final Fantasy 2 based game source code lipska the kat <"nospam at neversurrender dot co dot uk"> - 2013-03-22 20:26 +0000
Re: Final Fantasy 2 based game source code Daniel Pitts <newsgroup.nospam@virtualinfinity.net> - 2013-03-22 13:32 -0700
Re: Final Fantasy 2 based game source code lipska the kat <"nospam at neversurrender dot co dot uk"> - 2013-03-22 21:39 +0000
Re: Final Fantasy 2 based game source code "Qu0ll" <Qu0llSixFour@gmail.com> - 2013-03-23 08:50 +1100
Re: Final Fantasy 2 based game source code Lars Enderin <lars.enderin@telia.com> - 2013-03-22 23:26 +0100
Re: Final Fantasy 2 based game source code "Qu0ll" <Qu0llSixFour@gmail.com> - 2013-03-23 09:39 +1100
Re: Final Fantasy 2 based game source code Arne VajhĂžj <arne@vajhoej.dk> - 2013-03-22 20:15 -0400
Re: Final Fantasy 2 based game source code Arne VajhĂžj <arne@vajhoej.dk> - 2013-03-22 20:12 -0400
Re: Final Fantasy 2 based game source code Arne VajhĂžj <arne@vajhoej.dk> - 2013-03-22 20:08 -0400
Re: Final Fantasy 2 based game source code "Chris Uppal" <chris.uppal@metagnostic.REMOVE-THIS.org> - 2013-03-23 10:59 +0000
Re: Final Fantasy 2 based game source code Martin Gregorie <martin@address-in-sig.invalid> - 2013-03-23 15:33 +0000
Re: Final Fantasy 2 based game source code Joshua Cranmer đ§ <Pidgeot18@verizon.invalid> - 2013-03-22 10:19 -0500
Re: Final Fantasy 2 based game source code lipska the kat <"nospam at neversurrender dot co dot uk"> - 2013-03-22 16:57 +0000
Re: Final Fantasy 2 based game source code Joshua Cranmer đ§ <Pidgeot18@verizon.invalid> - 2013-03-22 14:07 -0500
Re: Final Fantasy 2 based game source code lipska the kat <"nospam at neversurrender dot co dot uk"> - 2013-03-22 20:09 +0000
Re: Final Fantasy 2 based game source code Arne VajhĂžj <arne@vajhoej.dk> - 2013-03-22 20:31 -0400
Re: Final Fantasy 2 based game source code lipska the kat <"nospam at neversurrender dot co dot uk"> - 2013-03-23 08:54 +0000
Re: Final Fantasy 2 based game source code Joshua Cranmer đ§ <Pidgeot18@verizon.invalid> - 2013-03-23 23:01 -0500
Re: Final Fantasy 2 based game source code lipska the kat <"nospam at neversurrender dot co dot uk"> - 2013-03-24 10:04 +0000
Re: Final Fantasy 2 based game source code Arved Sandstrom <asandstrom2@eastlink.ca> - 2013-03-24 17:07 -0300
Re: Final Fantasy 2 based game source code lipska the kat <"nospam at neversurrender dot co dot uk"> - 2013-03-25 09:19 +0000
Re: Final Fantasy 2 based game source code lipska the kat <"nospam at neversurrender dot co dot uk"> - 2013-03-25 09:26 +0000
Re: Final Fantasy 2 based game source code Arne VajhĂžj <arne@vajhoej.dk> - 2013-03-22 20:49 -0400
Re: Final Fantasy 2 based game source code "Chris Uppal" <chris.uppal@metagnostic.REMOVE-THIS.org> - 2013-03-23 11:12 +0000
Re: Final Fantasy 2 based game source code lipska the kat <"nospam at neversurrender dot co dot uk"> - 2013-03-23 15:24 +0000
Re: Final Fantasy 2 based game source code Martin Gregorie <martin@address-in-sig.invalid> - 2013-03-23 16:21 +0000
Re: Final Fantasy 2 based game source code lipska the kat <"nospam at neversurrender dot co dot uk"> - 2013-03-23 17:10 +0000
Re: Final Fantasy 2 based game source code Martin Gregorie <martin@address-in-sig.invalid> - 2013-03-23 18:27 +0000
Re: Final Fantasy 2 based game source code lipska the kat <"nospam at neversurrender dot co dot uk"> - 2013-03-23 18:51 +0000
Re: Final Fantasy 2 based game source code Arved Sandstrom <asandstrom2@eastlink.ca> - 2013-03-23 22:00 -0300
Re: Final Fantasy 2 based game source code Arne VajhĂžj <arne@vajhoej.dk> - 2013-03-22 20:19 -0400
Re: Final Fantasy 2 based game source code "Qu0ll" <Qu0llSixFour@gmail.com> - 2013-03-21 14:12 +1100
Re: Final Fantasy 2 based game source code lipska the kat <"nospam at neversurrender dot co dot uk"> - 2013-03-21 09:06 +0000
Re: Final Fantasy 2 based game source code "Qu0ll" <Qu0llSixFour@gmail.com> - 2013-03-21 20:57 +1100
Re: Final Fantasy 2 based game source code lipska the kat <"nospam at neversurrender dot co dot uk"> - 2013-03-21 10:42 +0000
Re: Final Fantasy 2 based game source code "Qu0ll" <Qu0llSixFour@gmail.com> - 2013-03-21 22:11 +1100
Re: Final Fantasy 2 based game source code lipska the kat <"nospam at neversurrender dot co dot uk"> - 2013-03-21 11:53 +0000
Re: Final Fantasy 2 based game source code Arne VajhĂžj <arne@vajhoej.dk> - 2013-03-21 17:58 -0400
Re: Final Fantasy 2 based game source code lipska the kat <"nospam at neversurrender dot co dot uk"> - 2013-03-20 13:51 +0000
Re: Final Fantasy 2 based game source code Joshua Cranmer đ§ <Pidgeot18@verizon.invalid> - 2013-03-20 09:28 -0500
Re: Final Fantasy 2 based game source code lipska the kat <"nospam at neversurrender dot co dot uk"> - 2013-03-20 15:03 +0000
Re: Final Fantasy 2 based game source code Arne VajhĂžj <arne@vajhoej.dk> - 2013-03-20 20:32 -0400
Re: Final Fantasy 2 based game source code Joerg Meier <joergmmeier@arcor.de> - 2013-03-20 17:52 +0100
Re: Final Fantasy 2 based game source code lipska the kat <"nospam at neversurrender dot co dot uk"> - 2013-03-20 17:43 +0000
Re: Final Fantasy 2 based game source code "Qu0ll" <Qu0llSixFour@gmail.com> - 2013-03-21 10:01 +1100
Re: Final Fantasy 2 based game source code lipska the kat <"nospam at neversurrender dot co dot uk"> - 2013-03-21 08:35 +0000
Re: Final Fantasy 2 based game source code Arne VajhĂžj <arne@vajhoej.dk> - 2013-03-20 20:35 -0400
Re: Final Fantasy 2 based game source code Arne VajhĂžj <arne@vajhoej.dk> - 2013-03-20 20:18 -0400
Re: Final Fantasy 2 based game source code Jim Janney <jjanney@shell.xmission.com> - 2013-03-22 18:00 -0600
Re: Final Fantasy 2 based game source code "Qu0ll" <Qu0llSixFour@gmail.com> - 2013-03-23 11:08 +1100
Re: Final Fantasy 2 based game source code Arne VajhĂžj <arne@vajhoej.dk> - 2013-03-22 20:26 -0400
Re: Final Fantasy 2 based game source code Joerg Meier <joergmmeier@arcor.de> - 2013-03-20 12:41 +0100
Re: Final Fantasy 2 based game source code paul.cager@gmail.com - 2013-03-20 05:59 -0700
Re: Final Fantasy 2 based game source code Joerg Meier <joergmmeier@arcor.de> - 2013-03-20 17:49 +0100
Re: Final Fantasy 2 based game source code Lars Enderin <lars.enderin@telia.com> - 2013-03-20 20:33 +0100
Re: Final Fantasy 2 based game source code Joerg Meier <joergmmeier@arcor.de> - 2013-03-20 23:15 +0100
Re: Final Fantasy 2 based game source code Lars Enderin <lars.enderin@telia.com> - 2013-03-21 00:11 +0100
Re: Final Fantasy 2 based game source code Joerg Meier <joergmmeier@arcor.de> - 2013-03-21 00:27 +0100
Re: Final Fantasy 2 based game source code Arne VajhĂžj <arne@vajhoej.dk> - 2013-03-20 20:39 -0400
Re: Final Fantasy 2 based game source code Gene Wirchenko <genew@telus.net> - 2013-03-21 10:01 -0700
Re: Final Fantasy 2 based game source code Arne VajhĂžj <arne@vajhoej.dk> - 2013-03-21 17:39 -0400
Re: Final Fantasy 2 based game source code Joerg Meier <joergmmeier@arcor.de> - 2013-03-22 01:21 +0100
Re: Final Fantasy 2 based game source code bubble <bubble@soft29.vub.ac.be> - 2013-03-24 14:16 +0000
csiph-web