LOADING
Loading
Hi , welcome back.
LogoutLOGOUT
 
  Lost password?  
Hi
 


Prev Previous Post   Next Post Next
  #1  
Old 09-08-2004, 02:32 PM
FrozenMedia's Avatar
FrozenMedia FrozenMedia is offline

Frozen Moderator
 
Join Date: Apr 2003
Location: United Kingdom
Posts: 2,701
Rep Power: 13
FrozenMedia is on a distinguished road
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
Reply With Quote
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump




All times are GMT. The time now is 01:58 AM.