
Welcome Guest
|
#1
|
||||
|
||||
|
Prim
Ok as you may know Ted Patrick has released PRIM a couple of minutes ago for free under the BSD licence.
Just a couple of questions now looking at the code: 1. How has he managed to overload an operator e.g. Actionscript:
createPrim ( Prim.STRICT | Prim.STRING , 'testVal' , 'Hello World' ); testVal = "Hello"; //works testVal = 29; // fails 2. How has he apparently overloaded a function e.g. Actionscript:
// In one file:
Object.prototype.createPrim = function(t,n,v,h,o,d){...}
//In another
Object.prototype.createPrim[0x2000100] = function(){...}Woah? Rich
__________________
Blog: http://www.richardleggett.co.uk | If your happy with the help, let us know about it
|
«
Previous Thread
|
Next Thread
»
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|





