Article View: comp.lang.eiffel
Article #1198Re: Beware of "C" Hackers -- A rebuttal to Bertrand Meyer
From: Kazimir Kylheku
Date: Sun, 24 Mar 1996 22:24
Date: Sun, 24 Mar 1996 22:24
35 lines
2405 bytes
2405 bytes
In article <slrn4l9gov.2hg.crawford@kloognome.cris.com>, Robert Crawford <crawford@iac.net> wrote: >Kazimir Kylheku <c2a192@ugrad.cs.ubc.ca> wrote: >>If you are a master in this paradigm, OO doesn't strike you as anything ``Zen >>like'', but as a marginal improvement in some aspects of design and >>implementation that's generally not worth the hassle. You can benefit from >>OO approaches even ifyou use languages like C and Modula 2. You don't need the >>extra linguistic frills to benefit from the useful concepts of the paradigm. > > Let me add that I've seen this done -- I'm working on a >project that incorporated a lot of features that look, act, and read >like objects. They just happen to be written in plain C. I do the same thing. I once switched to Modula 2 and later back to C. I found no problems bringing in concepts from modula 2, except for visibility operators: the ability to reference an object using module_name.member_name, or optionally to import the member explicitly and then dispense with the extra qualifier. I once wrote an assembly language module which completely conformed to the Modula 2 conventions. I hacked the compiler's object format, and named my assembler symbols so that they behaved just like Modula 2 objects with respect to the module.member name space convention. I made an interface specification in the DEF file, and everything worked properly: abstract data typing with assembly language. The same could be done with OO. > We didn't have a C++ compiler, and we only had 3.5 trained C >programmers, let alone anyone with enough experience in C++ to carry >everyone else. Which shows that all kinds of factors are involved in language choice, not just techno-weenie justifications. --
Technical Details
Message-ID:
<4j4i3kINNi1a@keats.ugrad.cs.ubc.ca>Path:
arc1-ca.pugleaf.net!keats.ugrad.cs.ubc.ca!not-for-mailReferences:
<1995Jul3.034108.4193@rcmcon.com> <jmaling-2303960413010001@slwol1p47.ozemail.com.au> <4iv933INN7f2@keats.ugrad.cs.ubc.ca> <slrn4l9gov.2hg.crawford@kloognome.cris.com>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!keats.ugrad.cs.ubc.ca!not-for-mail From: c2a192@ugrad.cs.ubc.ca (Kazimir Kylheku) Newsgroups: comp.lang.eiffel,comp.lang.c,comp.lang.c++,comp.object,comp.software-eng Subject: Re: Beware of "C" Hackers -- A rebuttal to Bertrand Meyer Date: 24 Mar 1996 14:24:52 -0800 Organization: Computer Science, University of B.C., Vancouver, B.C., Canada Message-ID: <4j4i3kINNi1a@keats.ugrad.cs.ubc.ca> References: <1995Jul3.034108.4193@rcmcon.com> <jmaling-2303960413010001@slwol1p47.ozemail.com.au> <4iv933INN7f2@keats.ugrad.cs.ubc.ca> <slrn4l9gov.2hg.crawford@kloognome.cris.com> NNTP-Posting-Host: keats.ugrad.cs.ubc.ca