Another problem with properties

Marcin Kuszczak aarti at interia.pl
Fri Aug 24 14:34:43 PDT 2007


BCS wrote:

> Short version, proprtties are just function. Interfaces are just
> functions.
> 
> That said, It wouldn't be impossible to have interfaces define members
> (the vtable entry for them would be a pointer offset to get from the
> interface instance to the member) but then there would be no way to
> enforce encapsulation.

What do you mean by "enforce encapsulation"? What would your proposition
solve and what not?

-- 
Regards
Marcin Kuszczak (Aarti_pl)
-------------------------------------
Ask me why I believe in Jesus - http://zapytaj.dlajezusa.pl (en/pl)
Doost (port of few Boost libraries) - http://www.dsource.org/projects/doost/
-------------------------------------




More information about the Digitalmars-d mailing list