OOP using C

T

Timprog

OOP using C. It is possible?

Objectno-orientorovannoje programmirovaniye na C.
Mozhno li sozdat na C programmu, s ispolzovaniyem paradigmi
OOP, naprimer, ispolzuya makrosi, sredstva typedef i drugiye sredstva
yazika.
 
E

E. Robert Tisdale

Timprog said:
OOP using C. It is possible?
Yes.

Objectno-orientorovannoje programmirovaniye na C.
Mozhno li sozdat na C programmu, s ispolzovaniyem paradigmi
OOP, naprimer, ispolzuya makrosi, sredstva typedef i drugiye sredstva
yazika.
 
A

August Derleth

Timprog said:
OOP using C. It is possible?

Yes, interestingly enough. You can do a google search for the name
Shape.h in this newsgroup for an explanation of how.
Objectno-orientorovannoje programmirovaniye na C.
Mozhno li sozdat na C programmu, s ispolzovaniyem paradigmi
OOP, naprimer, ispolzuya makrosi, sredstva typedef i drugiye sredstva
yazika.

This is an English-language group by default. Most people won't be able
to respond intelligently to foreign-language questions.
 
J

Jack Klein

Yes, interestingly enough. You can do a google search for the name
Shape.h in this newsgroup for an explanation of how.


This is an English-language group by default. Most people won't be able
to respond intelligently to foreign-language questions.

....and there are those who can't do so to English-language questions,
but I'm not mentioning any names. ;)
 
E

E. Robert Tisdale

August said:
Yes, interestingly enough. You can do a google search for the name
Shape.h in this newsgroup for an explanation of how.

Subject: Re: Having C code looking like C++ code
Date: 2003-10-13 17:57:49 PST
This is an English-language group by default. Most people won't be able
to respond intelligently to foreign-language questions.

I tried Babel Fish Translation:

http://world.altavista.com/

but it's evidently *not* Russian.
 
N

Nick Landsberg

August said:
Yes, interestingly enough. You can do a google search for the name
Shape.h in this newsgroup for an explanation of how.



This is an English-language group by default. Most people won't be able
to respond intelligently to foreign-language questions.
Actually, the summation in the top line was pretty good
but not as specific as the stuff on the bottom.

As I interpret the Polish or Russian or Ukranian, it
reads:

"Object Oriented Programming in C.
Can it be created in a C program, using the paradigms
of OOP, for example, using macros, constructs/resources (like) typedef
and other constructs/resources of the language."

But you're right, August. Most of the English-only speakers
would be lost.
 
V

Victor Nazarov

Nick said:
Actually, the summation in the top line was pretty good
but not as specific as the stuff on the bottom.

As I interpret the Polish or Russian or Ukranian, it
reads:

"Object Oriented Programming in C.
Can it be created in a C program, using the paradigms
of OOP, for example, using macros, constructs/resources (like) typedef
and other constructs/resources of the language."

But you're right, August. Most of the English-only speakers
would be lost.
It seems to me that it was russian. Your translation is pretty good. I'd
like to answer:
Yes is is possible, but I think it is very annoying to use macrosses to
implement OOP. The most comfortable and powerful is to use some run-time
library that would provide classes, inheritance and other stuff by means
of call to some functions. I've written some kind of this library with
the multiple inheritance and polymorphisms enabled.

vir
 
T

Thomas Stegen

Nick said:
"Object Oriented Programming in C.
Can it be created in a C program, using the paradigms
of OOP, for example, using macros, constructs/resources (like) typedef
and other constructs/resources of the language."

But you're right, August. Most of the English-only speakers
would be lost.

People like me who speak two and a half languages was lost also ;)

(The half means I am sort able to decipher french if pressed)
 
D

Dan Pop

In said:
OOP using C. It is possible?

The first C++ translator generated C code, so it *must* be possible.
A better question is whether it's worth doing it...

Dan
 
D

Dan Pop

In said:
I tried Babel Fish Translation:

http://world.altavista.com/

but it's evidently *not* Russian.

It's (quite obviously) Russian transliterated to 7-bit ASCII, the
character set of the Usenet.

The other way of posting Russian text is by generating a JPEG image
of the Cyrillic text and uuencoding it, but this is neither practical
nor bandwidth-friendly.

Dan
 
S

Stephen Sprunk

Dan Pop said:
It's (quite obviously) Russian transliterated to 7-bit ASCII, the
character set of the Usenet.

The other way of posting Russian text is by generating a JPEG image
of the Cyrillic text and uuencoding it, but this is neither practical
nor bandwidth-friendly.

The "correct" way would be to use a modern editor/newsreader that can send a
Unicode message in UTF-7. I do this with Chinese (even on a US/English
system), so Russian should be just as easy.

S
 
C

CBFalconer

Stephen said:
.... snip ...

If we examine the geometry of the situation, it would appear that
most people are disagreeable and smart, and only the very few in
the center are stupid. This disagrees with both observation and
common sense.
 
S

Stephen Sprunk

CBFalconer said:
If we examine the geometry of the situation, it would appear that
most people are disagreeable and smart, and only the very few in
the center are stupid. This disagrees with both observation and
common sense.


One resolution is to presume a third group, very stupid people, who surround
themselves mostly with each other and a few "only" stupid people. I'll
reserve comment on whether this agrees with observation :)

I've seen an alternate quoting where "surround" is "should surround" in both
cases. I've been unable to determine which version is correct, if not both
of them, and unfortunately the alternate didn't fit well in my signature,
not to mention sounding more insulting.

S
 
D

Dan Pop

In said:
The "correct" way would be to use a modern editor/newsreader that can send a
Unicode message in UTF-7. I do this with Chinese (even on a US/English
system), so Russian should be just as easy.

The Usenet character set is still ASCII and not Unicode, even if encoded
with UTF-7. In other words, you can't expect each and every newsreader to
support more than ASCII.

Dan
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,141
Messages
2,570,817
Members
47,362
Latest member
ChandaWagn

Latest Threads

Top