🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.database.ado
Article #6011

regression of compilers

#6011
From: JJ
Date: Fri, 17 Nov 2000 21:44
30 lines
1606 bytes
Has technology become so complex, that compilers can no longer distinguish
fundamental concepts of code?

Aside from Borlands typelib imports not working correctly (C++ Builder 5),
the following is an excerpt showing why a programmer could be left
clueless...

Note: example requires typelib import of ado 2.x

   TCOM_Connection cn = CoConnection::Create();
   cn->Release();
   cn.Release();

Note: compiled using C++Builder 5pro.  This example compiles, both can't be
correct.

I would think that perhaps this fails on typelib style objects? Because the
following is interpreted/compiled correctly:

struct A {
   int B;
};

A fooA;
A *fooB = new A;

fooA.B = 0;
fooA->B = 0; // compiler error=good
fooB.B = 0; // compiler error=good
fooB->B = 0;
Technical Details
Message-ID: <3a15a6cb_1@dnews>
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!sn-xit-03!supernews.com!europa.netcrusader.net!193.162.153.122!news.tele.dk!194.213.69.151!news.algonet.se!algonet!neel.uni2.net!newssuck.uni2.dk!bornews.borland.com!dnews!152.160.44.1

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10698b,215dc36fdcc985c,start
X-Google-Attributes: gid10698b,public
X-Google-ArrivalTime: 2000-11-17 13:45:14 PST
From: "JJ" <jj@jj>
Newsgroups: borland.public.cppbuilder.database.ado
Subject: regression of compilers
Date: Fri, 17 Nov 2000 16:44:34 -0500
Lines: 35
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4133.2400
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
NNTP-Posting-Host: 152.160.44.1
Message-ID: <3a15a6cb_1@dnews>
X-Trace: 17 Nov 2000 13:44:43 -0800, 152.160.44.1
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!sn-xit-03!supernews.com!europa.netcrusader.net!193.162.153.122!news.tele.dk!194.213.69.151!news.algonet.se!algonet!neel.uni2.net!newssuck.uni2.dk!bornews.borland.com!dnews!152.160.44.1