www.digitalmars.com Home | Search | C & C++ | D | DMDScript | News Groups | index | prev | next
Archives

D Programming
D
D.gnu
digitalmars.D
digitalmars.D.bugs
digitalmars.D.dtl
digitalmars.D.dwt
digitalmars.D.announce
digitalmars.D.learn
digitalmars.D.debugger

C/C++ Programming
c++
c++.announce
c++.atl
c++.beta
c++.chat
c++.command-line
c++.dos
c++.dos.16-bits
c++.dos.32-bits
c++.idde
c++.mfc
c++.rtl
c++.stl
c++.stl.hp
c++.stl.port
c++.stl.sgi
c++.stlsoft
c++.windows
c++.windows.16-bits
c++.windows.32-bits
c++.wxwindows

digitalmars.empire
digitalmars.DMDScript

D.gnu - messaging implementation

↑ ↓ ← "V. Krishnakumar" <lvimala eth.net> writes:
Jan,

How do you plan to implement object-messaging ? using VTABLES ?
How about using a runtime messenger like Objective-C ? Using a runtime
messenger makes the backend much easier and simpler to write. Besides, type
introspection and message forwarding can be achieved easily. I think looking
at the GNU Objective-C sources should reveal valuable insight.

cheers,
-Krish
Jul 30 2002
↑ ↓ Jan Knepper <jan smartsoft.cc> writes:
Hi Krish,

I have not gone that far yet. Yesterday I started looking more serious into
other compiler front-end implementations to see how we coule reuse existing
technology.
Of course initially we are going to use the GCC back-end. We are just writing a
GLUE layer to glue the D front-end to the GCC back-end. Any help and insight is
more than welcome.
I certainly will take a look at the GCC Objective-C implementation.

Jan



"V. Krishnakumar" wrote:

 Jan,

 How do you plan to implement object-messaging ? using VTABLES ?
 How about using a runtime messenger like Objective-C ? Using a runtime
 messenger makes the backend much easier and simpler to write. Besides, type
 introspection and message forwarding can be achieved easily. I think looking
 at the GNU Objective-C sources should reveal valuable insight.

 cheers,
 -Krish

Jul 30 2002
↑ ↓ → "V. Krishnakumar" <lvimala eth.net> writes:
"Jan Knepper" <jan smartsoft.cc> wrote in message
news:3D46E25F.3642255D smartsoft.cc...
 Hi Krish,

 I have not gone that far yet. Yesterday I started looking more serious

 other compiler front-end implementations to see how we coule reuse

 technology.

 Of course initially we are going to use the GCC back-end. We are just

 GLUE layer to glue the D front-end to the GCC back-end. Any help and

 more than welcome.

infrastructure for code generation. You still have to map the oop stuff, isnt it ? (or is my ignorance speaking here ?) AFAIK, there are 3 models of OOP impl: 1. the "SELF" approach 2. the VTABLE approach 3. the runtime messenger. Option (3) seems to be the most flexible, but slightly slower.
 I certainly will take a look at the GCC Objective-C implementation.

It contains a lot of valuable info. -Krish
Jul 31 2002