comp.lang.ada
 help / color / mirror / Atom feed
From: philh@vision25.demon.co.uk (Phil Hunt)
Subject: Re: GPL and "free" software
Date: 1999/05/01
Date: 1999-05-01T00:00:00+00:00	[thread overview]
Message-ID: <925572182snz@vision25.demon.co.uk> (raw)
In-Reply-To: 3729D0F6.3DF2CCED@doc.ic.ac.uk

In article <3729D0F6.3DF2CCED@doc.ic.ac.uk> epa98@doc.ic.ac.uk "Ed Avis" writes:
> David Starner wrote:
> >In C terms, it would be similar to a "library" that was full of macros -
> >for example:
> >
> >#define sqrt(a) ({int i; i = a/2; do {a = i/a;} \
> >        while (a*a - i > .1); i})
> >
> >You could write most of the C library that way. Now, that would
> >embed a significant amount of code into the application in a way
> >that dynamic linking wouldn't help. This is effectively what
> >C++ templates and Ada generics do, but at a higher level.

Is the ({ ... }) construct standard C and/or C++ these days? IIRC
gcc supports it.

> Surely not!  I'm sure that templates are implemented in a slightly
> more sensible way than by cutting and pasting object code - or is this
> not what you meant?. 

Effectively this is what templates do. The difference is that templates
allow more type checking than macro definitions.

(Bjarne Stroustrup is on record as saying that he wishes he'd 
initially implemented templates as an extension to #define macros).

> Can't you write a template class in C++, and put
> it in a dynamically linked library?

I would be surprised if this is the case. However instantiations of 
templates can be put in a DLL or .so.

> I know that MFC, for example,
> includes template classes and yet is in a DLL.


-- 
Phil Hunt....philh@vision25.demon.co.uk





  parent reply	other threads:[~1999-05-01  0:00 UTC|newest]

Thread overview: 162+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-04-20  0:00 air traffic control software Terry J. Westley
1999-04-21  0:00 ` Kevin Rigotti
1999-04-21  0:00   ` Robert Dewar
1999-04-21  0:00     ` GPL and "free" software (was: air traffic control software) Terry J. Westley
1999-04-21  0:00       ` bill
1999-04-23  0:00         ` Robert Dewar
1999-04-23  0:00         ` Robert Dewar
1999-04-23  0:00           ` Tom Moran
1999-04-24  0:00             ` Florian Weimer
1999-04-25  0:00               ` Robert Dewar
1999-04-26  0:00                 ` GPL and "free" software Nick Roberts
1999-04-26  0:00                   ` spblunt
1999-04-26  0:00                     ` Barry Margolin
1999-04-26  0:00                     ` Robert Dewar
1999-04-26  0:00                     ` Tim Smith
1999-04-26  0:00                       ` Kenneth P. Turvey
1999-04-27  0:00                         ` Robert Dewar
1999-04-27  0:00                           ` Barry Margolin
1999-05-02  0:00                             ` Mitch Blevins
1999-05-02  0:00                               ` Sam Holden
1999-05-03  0:00                                 ` Barry Margolin
1999-04-26  0:00                       ` Robert Dewar
1999-04-27  0:00                       ` Phil Hunt
1999-04-27  0:00                         ` David Kastrup
1999-04-27  0:00                           ` Robert Dewar
1999-04-27  0:00                             ` Lynn Winebarger
1999-05-05  0:00                             ` Richard E. Hawkins Esq.
1999-04-27  0:00                           ` Lynn Winebarger
1999-04-26  0:00                   ` Robert Dewar
1999-04-26  0:00                   ` Tim Smith
1999-04-26  0:00                   ` Florian Weimer
1999-04-26  0:00                   ` Paul Hughett
1999-04-26  0:00                     ` Robert Dewar
1999-04-26  0:00                       ` Paul Hughett
1999-04-26  0:00                         ` Robert Dewar
1999-04-27  0:00                           ` spblunt
1999-04-27  0:00                             ` Robert Dewar
1999-04-27  0:00                           ` Paul Hughett
1999-04-27  0:00                             ` Barry Margolin
1999-04-27  0:00                               ` Paul Hughett
1999-04-27  0:00                                 ` Joshua E. Rodd
     [not found]                                   ` <7g5qgg$n7t@www.inetnow.net>
1999-04-28  0:00                                     ` Joshua E. Rodd
1999-04-28  0:00                                       ` Robert Dewar
1999-04-28  0:00                                         ` Joshua E. Rodd
1999-04-29  0:00                                           ` Robert Dewar
1999-04-29  0:00                                             ` David Starner
1999-04-29  0:00                                               ` Robert Dewar
1999-04-29  0:00                                             ` Lynn Winebarger
1999-04-29  0:00                                               ` Joshua E. Rodd
1999-04-30  0:00                                                 ` Lynn Winebarger
1999-05-05  0:00                                               ` Richard E. Hawkins Esq.
1999-05-05  0:00                                                 ` Robert Dewar
1999-05-05  0:00                                                   ` Richard E. Hawkins Esq.
1999-05-06  0:00                                                     ` Robert Dewar
1999-05-06  0:00                                                       ` Barry Margolin
1999-05-06  0:00                                                         ` Robert Dewar
1999-05-06  0:00                                                           ` Barry Margolin
1999-05-06  0:00                                                             ` Robert Dewar
1999-05-06  0:00                                                               ` Barry Margolin
1999-05-06  0:00                                                                 ` Robert Dewar
1999-05-06  0:00                                                                   ` Roger Espel Llima
1999-05-07  0:00                                                                     ` Robert Dewar
1999-05-07  0:00                                                                       ` dennison
1999-05-07  0:00                                                                       ` Barry Margolin
1999-05-06  0:00                                                         ` Robert Dewar
     [not found]                                             ` <7gdv6m$1fid$1@Mercury.mcs.net>
1999-05-03  0:00                                               ` [O/T 4 cla] " Joshua E. Rodd
     [not found]                                                 ` <7gkmt5$e8t@www.inetnow.net>
1999-05-03  0:00                                                   ` Joshua E. Rodd
     [not found]                                                     ` <7gnb7u$hlu@www.inetnow.net>
1999-05-04  0:00                                                       ` Leslie Mikesell
1999-05-05  0:00                                                         ` Robert Dewar
1999-05-05  0:00                                                           ` Leslie Mikesell
1999-05-06  0:00                                                             ` Robert Dewar
1999-05-08  0:00                                                               ` Leslie Mikesell
1999-05-08  0:00                                                                 ` Robert Dewar
1999-05-10  0:00                                                                   ` Leslie Mikesell
1999-05-11  0:00                                                                     ` Robert Dewar
1999-05-10  0:00                                                                       ` Leslie Mikesell
1999-05-11  0:00                                                                     ` Robert Dewar
1999-05-10  0:00                                                                       ` Leslie Mikesell
1999-05-11  0:00                                                                         ` Robert Dewar
1999-05-11  0:00                                                                           ` Leslie Mikesell
1999-05-12  0:00                                                                             ` Robert Dewar
1999-05-04  0:00                                                   ` James Youngman
1999-05-06  0:00                                                     ` Robert Dewar
1999-05-04  0:00                                                 ` James Youngman
1999-05-06  0:00                                                   ` Robert Dewar
1999-05-06  0:00                                             ` Robert A Duff
1999-05-06  0:00                                               ` Robert Dewar
1999-05-07  0:00                                                 ` Joshua E. Rodd
1999-05-08  0:00                                                   ` dewarr
1999-05-18  0:00                                                     ` Joshua E. Rodd
     [not found]                                       ` <7g7ro3$q91@www.inetnow.net>
1999-04-28  0:00                                         ` Lynn Winebarger
1999-04-29  0:00                                           ` Robert Dewar
     [not found]                                             ` <7g8ip8$skl@www.inetnow.net>
1999-04-29  0:00                                               ` Barry Margolin
1999-04-29  0:00                                                 ` [Offtopic for cl.ada] " Joshua E. Rodd
1999-04-30  0:00                                                 ` Paul Hughett
1999-04-30  0:00                                                   ` Robert Dewar
1999-04-29  0:00                                             ` Lynn Winebarger
1999-04-29  0:00                                               ` Aidan Skinner
1999-05-08  0:00                                           ` dewarr
1999-04-28  0:00                                         ` Joshua E. Rodd
1999-04-28  0:00                                 ` Barry Margolin
1999-04-28  0:00                                   ` Lynn Winebarger
1999-04-28  0:00                                     ` Samuel Mize
1999-04-28  0:00                                     ` Samuel Mize
1999-04-29  0:00                                       ` Robert Dewar
1999-04-28  0:00                                     ` Joshua E. Rodd
1999-04-29  0:00                                       ` Robert Dewar
1999-04-29  0:00                                         ` Robert A Duff
1999-04-29  0:00                                           ` Barry Margolin
1999-04-29  0:00                                     ` Fraser Wilson
1999-04-29  0:00                                       ` Ed Avis
1999-04-29  0:00                                         ` Barry Margolin
1999-04-29  0:00                                         ` Robert Dewar
1999-04-30  0:00                                           ` Ed Avis
1999-04-29  0:00                                         ` David Starner
1999-04-29  0:00                                           ` Ed Avis
1999-04-29  0:00                                             ` David Starner
1999-04-30  0:00                                               ` Ed Avis
1999-04-30  0:00                                                 ` Barry Margolin
1999-04-30  0:00                                                   ` Ed Avis
     [not found]                                                     ` <R5qW2.242$jw4.22063@burlma1-snr2>
     [not found]                                                       ` <372ADEED.D907754@doc.ic.ac.uk>
1999-05-03  0:00                                                         ` Joshua E. Rodd
1999-05-04  0:00                                                           ` Ed Avis
1999-05-04  0:00                                                             ` Barry Margolin
1999-05-04  0:00                                                               ` Ed Avis
1999-05-04  0:00                                                                 ` Peter Seebach
1999-05-04  0:00                                                                 ` Barry Margolin
1999-05-08  0:00                                                                   ` dewarr
1999-05-04  0:00                                                         ` Alan Braggins
1999-05-01  0:00                                                 ` Phil Hunt [this message]
1999-05-02  0:00                                                   ` Andy Isaacson
1999-05-03  0:00                                                     ` Robert Dewar
1999-05-02  0:00                                                   ` Ed Avis
1999-05-02  0:00                                                     ` Ole-Hjalmar Kristensen
1999-05-02  0:00                                                     ` Phil Hunt
1999-05-02  0:00                                                       ` Ed Avis
1999-05-03  0:00                                                         ` dennison
1999-04-29  0:00                                             ` Robert Dewar
1999-04-29  0:00                                             ` Joshua E. Rodd
1999-04-29  0:00                                     ` Paul Hughett
1999-04-30  0:00                                     ` spblunt
1999-04-30  0:00                                       ` David Kastrup
1999-04-27  0:00                             ` David Kastrup
1999-04-27  0:00                           ` Lynn Winebarger
1999-04-26  0:00                             ` Tim Smith
1999-04-27  0:00                             ` Barry Margolin
1999-04-27  0:00                               ` Lynn Winebarger
1999-04-26  0:00                   ` Robert Dewar
1999-04-26  0:00                   ` Phil Hunt
1999-04-27  0:00                     ` Robert Dewar
1999-04-27  0:00                       ` Ronald Cole
1999-04-23  0:00           ` GPL and "free" software (was: air traffic control software) Larry Kilgallen
1999-04-23  0:00             ` Robert Dewar
1999-04-21  0:00       ` dennison
     [not found] ` <DXqW2.244$jw4.22256@burlma1-snr2>
     [not found]   ` <7gdln1$vna$1@jetsam.uits.indiana.edu>
     [not found]     ` <372ADFBD.4F4C241B@doc.ic.ac.uk>
1999-05-01  0:00       ` GPL and "free" software Lynn Winebarger
     [not found]       ` <7gff2f$8o2@www.inetnow.net>
1999-05-01  0:00         ` Ed Avis
1999-05-03  0:00         ` Joshua E. Rodd
     [not found]       ` <m2zp3pat3q.fsf@mailhost.neuroinformatik.ruhr-uni-bochum.de>
1999-05-03  0:00         ` Joshua E. Rodd
1999-05-04  0:00           ` Larry Kilgallen
1999-05-04  0:00           ` Ed Avis
1999-05-03  0:00     ` Barry Margolin
     [not found] ` <7gdd9e$36l$1@flotsam.uits.indiana.edu>
     [not found]   ` <372ADF48.B3C88507@doc.ic.ac.uk>
1999-05-04  0:00     ` Nick Roberts
1999-05-07  0:00       ` Robert Dewar
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox