473,398 Members | 2,427 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

Implementing OO in C

i've ever read a paper on the net which instruduced how to use C to
implement OOP including inheritance and virtual method table, but when
i am now tring to use it, i forget where is the paper on my hardisk.
does anyone know of the paper i mentioned? thanks.

-
woody

Sep 3 '06 #1
6 3127
Steven Woody wrote:
i've ever read a paper on the net which instruduced how to use C to
implement OOP including inheritance and virtual method table, but when
i am now tring to use it, i forget where is the paper on my hardisk.
does anyone know of the paper i mentioned? thanks.
Perhaps "Object-oriented Programming with ANSI-C" by Axel-Tobias
Schreiner, 1993, ooc.pdf.

--
Thomas M. Sommers -- tm*@nj.net -- AB2SB

Sep 3 '06 #2

T.M. Sommers wrote:
Steven Woody wrote:
i've ever read a paper on the net which instruduced how to use C to
implement OOP including inheritance and virtual method table, but when
i am now tring to use it, i forget where is the paper on my hardisk.
does anyone know of the paper i mentioned? thanks.

Perhaps "Object-oriented Programming with ANSI-C" by Axel-Tobias
Schreiner, 1993, ooc.pdf.
it is not this. but this also helps. thanks anyway.

>
--
Thomas M. Sommers -- tm*@nj.net -- AB2SB
Sep 3 '06 #3

"Steven Woody" <na********@gmail.comwrote in message
i've ever read a paper on the net which instruduced how to use C to
implement OOP including inheritance and virtual method table, but when
i am now tring to use it, i forget where is the paper on my hardisk.
does anyone know of the paper i mentioned? thanks.
There are lots of schemes.
What they boil down to basically this

typedef struct line
{
double (*length)(void *obj);
void (*getpoint) (void *obj, double t, double *x, double *y);
};

Then you implent straight lines, arcs, bezier curves, third order
derivatives of hyperexpentiated imaginary functions, and whatever you want,
using this interface. Then you ahve some scheme for putting the right
function pointer in place at the right time.
--
www.personal.leeds.ac.uk/~bgy1mm
freeware games to download.
Sep 3 '06 #4

Malcolm wrote:
"Steven Woody" <na********@gmail.comwrote in message
i've ever read a paper on the net which instruduced how to use C to
implement OOP including inheritance and virtual method table, but when
i am now tring to use it, i forget where is the paper on my hardisk.
does anyone know of the paper i mentioned? thanks.
There are lots of schemes.
What they boil down to basically this

typedef struct line
{
double (*length)(void *obj);
void (*getpoint) (void *obj, double t, double *x, double *y);
};

Then you implent straight lines, arcs, bezier curves, third order
derivatives of hyperexpentiated imaginary functions, and whatever you want,
using this interface. Then you ahve some scheme for putting the right
function pointer in place at the right time.
--
www.personal.leeds.ac.uk/~bgy1mm

ok, thank you all !
freeware games to download.
Sep 4 '06 #5
Steven Woody wrote:
i've ever read a paper on the net which instruduced how to use C to
implement OOP including inheritance and virtual method table, but when
i am now tring to use it, i forget where is the paper on my hardisk.
does anyone know of the paper i mentioned? thanks.
Maybe:

http://cern.ch/laurent.deniau/html/oopc/oopc.html

?

a+, ld.
Sep 4 '06 #6
Steven Woody wrote:
i've ever read a paper on the net which instruduced how to use C to
implement OOP including inheritance and virtual method table, but when
i am now tring to use it, i forget where is the paper on my hardisk.
does anyone know of the paper i mentioned? thanks.

-
woody
Another good source:
http://www.quantum-leaps.com/devzone...3.0_manual.pdf
--
------------------------------------------------------------------
Jack G. Atkinson Jr.
jg*******@gmail.com
Psa 104:4 He makes His angels spirits,
His ministers a flaming fire.
Luke 12:36-47 - Be ready!
------------------------------------------------------------------
Sep 5 '06 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: MKoleoso | last post by:
Problem: C#- Unable to create instance of a class implementing from an interface I have: namespace someNamespace { public __gc class SomeClass1 { }
1
by: Maurice | last post by:
Hi, We are implementing some wrappers in C++ according to the Adapter Pattern. The classes and their methods in the Adaptee classes (open-source library) have already the interface that we like,...
4
by: Frank J. Reashore | last post by:
Hello Everyone, I am implementing a simple interface in C# using Visual Studio .net and was quite surprised to discover that the C# compiler does NOT complain if a method on the interface is not...
7
by: Scott M. | last post by:
In a typical class, do I need to indicate that it implements the IDisposable interface and then create a Dispose method that implements the Dispose required by the IDisposable interface or can I...
4
by: phl | last post by:
hi, My question is: 1. To avoid possible memory leaks, when you use this pattern, after you have dealth with the unmanaged resources and before you take your object off the finalize queue,...
6
by: Raj Wall | last post by:
Hi, I am trying to implement the IEqualityComparer interface for a struct so I can use it as the Key for a Dictionary. My struct declaration has: public struct Ring : IEqualityComparer {...
5
by: koonda | last post by:
Hi all, I am a student and I have a project due 20th of this month, I mean May 20, 2007 after 8 days. The project is about creating a Connect Four Game. I have found some code examples on the...
2
by: Ian Semmel | last post by:
I am new to this world of ASP.NET so forgive the dumb questions. I have been looking at the sample provided 'Implementing a Session-State Store Provider' in an effort to understand how the...
4
by: Mohamed Mansour | last post by:
Hello, What is the purpose of implementing the Observer Pattern if we can trigger an event easily? For example (from books), You have a "Forecaster" which notifies "Observable" when a...
1
by: aditi kauts | last post by:
Hi I am implementing security on Contact base smart card which follows scosta template. In card structure ef is directly under DF and DF is directly under MF. According to the template i am...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.