|
Boost : |
From: Rainer Deyke (root_at_[hidden])
Date: 2001-04-02 01:12:31
----- Original Message -----
From: <tom-list_at_[hidden]>
To: <boost_at_[hidden]>
Sent: Sunday, April 01, 2001 11:51 PM
Subject: [boost] Re: creating a BPL instance from an existing C++ object.
> Regarding your dicussion of how to handle wrapped functions that
> return const references. I would not expect this to be possible: you
> can't return a const value to Python, so there is no appropriate
> behavior for Boost.Python.
Not true from a theoretical point of view: it would be possible to pass
"const" objects to Python through a wrapper objects that reflects the const
interface of the class, causing the objects to be immutable from Python.
-- Rainer Deyke (root_at_[hidden]) Shareware computer games - http://rainerdeyke.com "In ihren Reihen zu stehen heisst unter Feinden zu kaempfen" - Abigor
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk