Dan’s technical ramblings

Archive for May, 2009

So how about truly private fields in C#?

Thursday, May 21st, 2009 Posted in Uncategorized | 1 Comment »

UPDATE: Jim pointed out that you can access the field via reflecting over the delegate.  (See comment) Damn this is a bit like how java does anonymous access to private fields of the parent class. I wonder if you could ...

Truly private fields in JavaScript

Thursday, May 21st, 2009 Posted in Uncategorized | No Comments »

So I was chatting with Christian Blunden about JavaScript, and he asked if it was possible to have private fields in JavaScript. Now the language doesn't have a key word but I knew that you could use function scoping to achieve ...