From: Kevin Bluck <kevin.bluck@gm...> - 2006-09-21 17:09:14
Is there a proper way to declare properties in Py++? I've looked around
but can't find anything apparent. The only way I can see is something like:
From: Kevin Bluck <kevin.bluck@gm...> - 2006-09-21 20:20:14
> I know it is not as simple as you expect. If you can wait I plan to
> add support for properties in a week or two
> foo.property_( foo.member_function( 'get_x' ), foo.member_function(
> 'set_x' ) )
> #or may be next interface
> foo.property_( 'get_x', 'set_x' )
I can wait.
I think it would be preferable to accept either type of parameter, since
sometimes you may already have a reference to a member_function_t
available and just passing it would be convenient, but if you don't
having to make a temporary via the query API seems unnecessarily verbose.
Get latest updates about Open Source Projects, Conferences and News.