TIP 557: C++ support for Tcl

Bounty program for improvements to Tcl and certain Tcl packages.
Author:         Jan Nijtmans <[email protected]>
State:          Draft
Type:           Project
Vote:           Done
Created:        13-Dec-2019
Keywords:       Tcl
Tcl-Version:    8.7
Tcl-Branch:     cplusplus


Every once in a while there is a request to be able to compile Tcl with a C++ compiler. This would - in theory - allow C++ exceptions thrown by extensions to be handled by Tcl. This TIP is not about adding any code to Tcl doing that. But - as a first step - at least, Tcl needs to compile well with a C++ compiler even though we don't use any C++ features.

This TIP proposes making Tcl compilable with a C++ compiler, without actually using any C++ features.


The Tcl source-code has been strictified in the following ways:

Nothing is done yet in the Tcl code to handled C++ exception, neither is any of the API now available as C++ classes.


This document has been placed in the public domain.