Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!yetti!geac!len From: len@geac.UUCP (Leonard Vanek) Newsgroups: comp.lang.c++,comp.databases Subject: Re: UNIFY compatibility ... argh!!! Message-ID: <607@geac.UUCP> Date: Mon, 30-Mar-87 11:58:05 EST Article-I.D.: geac.607 Posted: Mon Mar 30 11:58:05 1987 Date-Received: Fri, 3-Apr-87 01:45:05 EST References: <382@sdd.UUCP> Reply-To: len@geac.UUCP (Leonard Vanek) Distribution: world Organization: /etc/newsname Lines: 39 Xref: mnetor comp.lang.c++:204 comp.databases:142 In article <382@sdd.UUCP> root@sdd.UUCP (Root) writes: > > ARGH!! I have discovered what appears to be an incompatibility >between UNIFY and c++! There is a function in UNIFY called delete(), >which deletes a record which conflicts with the c++ reserved word >delete!!!! Anyone know of how I can deal with this? (I only >have object for UNIFY!). In fact, "delete" is a key word of SQL, so any DBMS which uses SQL may have trouble being used with C++. Since we do intend to combine INGRES/SQL with C++ we certainly intend to work on this problem. A possible solution is to modify the C++ compiler, but this would sacrifice the portability of the resulting source files. To get around the problem with the Unify FUNCTION "delete()" you could just write another function which does nothing but pass its parmeters through to delete and pass back delete's return value. This function should be compiled as ordinary C and linked to the C++ main program. Thus, the C++ compiler will never see the call to "delete()" and will not get confused. However, for us SQL users there is another problem. Can a C++ program be passed through the various SQL preprocessors? If yes, the key word "delete" in a C++ program will confuse the SQL preprocessor. If not, the SQL code may have to be segregated in C subroutines in order to preprocess it, and the problem of the two deletes goes away because no source code ever goes through both the C++ compiler and the SQL preprocessor. Does anyone else have thoughts on this problem? Note that I have added comp.databases to the distribution list. --------------------------------------------------------------------- Leonard Vanek phone (416) 475-0525 Geac Computers International 350 Steelcase Rd. West Markham Ontario L3R 1B3 Canada