Python Productivity over C++
Tim Rowe
digitig at cix.co.uk
Fri Jun 16 19:34:00 EDT 2000
More information about the Python-list mailing list
Fri Jun 16 19:34:00 EDT 2000
- Previous message (by thread): Python Productivity over C++
- Next message (by thread): SV: Python Productivity over C++
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
In article <3949A5DB.5D4ECFCA at sightreader.com>, kens at sightreader.com (Ken Seehof) wrote: > This is a multi-part message in MIME format. > --------------241ADB457183291FAD22762F > Content-Type: text/plain; charset=us-ascii > Content-Transfer-Encoding: 7bit > > Actually C++ doesn't have true access control either. Just insert > before your > includes: > > #define private public > > . . . well, almost ;-) More effectively, declare a class with the same structure as the one you want to access, but with everything public, then cast the instance of the original class to your type. It will almost certainly work, and Stroustup says something to the effect that you deserve everything you'll get...
- Previous message (by thread): Python Productivity over C++
- Next message (by thread): SV: Python Productivity over C++
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list