Re: Can Functions be written in C++ or only C? - Mailing list pgsql-novice

From Tom Lane
Subject Re: Can Functions be written in C++ or only C?
Date
Msg-id 29316.997192925@sss.pgh.pa.us
Whole thread Raw
In response to Can Functions be written in C++ or only C?  ("Phillip J. Allen" <paallen@attglobal.net>)
List pgsql-novice
"Phillip J. Allen" <paallen@attglobal.net> writes:
> So can I create a dynamically linked object file in C++ and reference
> it in a function?

In theory you could, but in practice it's likely to be fairly painful.
IIRC, people have reported that the backend include files are not very
C++ - clean.

BTW, if you can write C++, you can write C ... you just have to remember
which parts of the language not to use.

            regards, tom lane

pgsql-novice by date:

Previous
From: Einar Karttunen
Date:
Subject: Re: Can Functions be written in C++ or only C?
Next
From: Leandro Fanzone
Date:
Subject: Test