A
A Traveler
Hello all,
i was just curious if anyone whos been playing with VS2005 could tell me...
In javascript (and java??) you can alter the prototypes for an object in
your project. I dont remember the syntax exactly, but basically you do
something like:
function String.prototype.mySplit(myArgs){...do something...}
and then any instance of a String object in that project has a new method
called "mySplit".
This isnt something by some chance that we will be able to do with intrinsic
objects in the framework in VS2005, is it?
I know it can be done by inheriting the intrinsic and extending it with a
new class in my project, but thats a lot heavier and more convoluted.
Cheers,
- Arthur Dent.
i was just curious if anyone whos been playing with VS2005 could tell me...
In javascript (and java??) you can alter the prototypes for an object in
your project. I dont remember the syntax exactly, but basically you do
something like:
function String.prototype.mySplit(myArgs){...do something...}
and then any instance of a String object in that project has a new method
called "mySplit".
This isnt something by some chance that we will be able to do with intrinsic
objects in the framework in VS2005, is it?
I know it can be done by inheriting the intrinsic and extending it with a
new class in my project, but thats a lot heavier and more convoluted.
Cheers,
- Arthur Dent.