Thread overview | |||||
---|---|---|---|---|---|
|
October 14, 2009 Eliminate all Protection Attributes | ||||
---|---|---|---|---|
| ||||
For C# in http://www.codeproject.com/Articles/42929/Csharp-4-0-Exposer-an-evil- DynamicObject.aspx describes code to disable all restrictions of visibility. Is such possible in D too? -manfred |
October 14, 2009 Re: Eliminate all Protection Attributes | ||||
---|---|---|---|---|
| ||||
Posted in reply to Manfred_Nowak | Manfred_Nowak wrote:
> For C# in
>
> http://www.codeproject.com/Articles/42929/Csharp-4-0-Exposer-an-evil-
> DynamicObject.aspx
>
> describes code to disable all restrictions of visibility.
>
> Is such possible in D too?
>
> -manfred
I don't think so, its really not a good thing to do anyways.
|
October 14, 2009 Re: Eliminate all Protection Attributes | ||||
---|---|---|---|---|
| ||||
Posted in reply to Manfred_Nowak | On 10/14/09 16:52, Manfred_Nowak wrote:
> For C# in
>
> http://www.codeproject.com/Articles/42929/Csharp-4-0-Exposer-an-evil-
> DynamicObject.aspx
>
> describes code to disable all restrictions of visibility.
>
> Is such possible in D too?
>
> -manfred
You can use object.tupleof[i] to access and change the fields of a class/struct. For the methods I think you can use pointers/delegates.
|
Copyright © 1999-2021 by the D Language Foundation