Intended Security Hole?

Manfred Nowak svv1999 at hotmail.com
Thu Oct 25 03:29:12 PDT 2012


Maxim Fomin wrote:

>>     b= d2;
> What is wrong here?
The slight change in behavior might be unexpected and not intended for 
the owner of variable `Base b;'.

What is the price ( i.e. coding time, execution time, execution space) 
the owner of that variable has to pay in the case that she/he want 
expectable behaviour only and owns the variable `b' but not the source 
of its type `Base' and has to provide some access to variable `b'?

In essence: kills the ability of "aspect programming" the intent of 
"information hiding"?

> But is not hijacking, it is inheriting. 
Variables can not be inhereted, only types. It seems to be euphemistic, 
to name "information steeling from" or "information changing of" a 
variable  by the conceptual term "inheritance".

-manfred   


More information about the Digitalmars-d-learn mailing list