some great optimalistations can be found here:
http://mindprod.com/jgloss/unmain.html

for ex.

class Truth
  {
  boolean isTrue ( boolean assertion )
     {
     if ( assertion != false )
        {
        return assertion;
        }
     else
        {
        return assertion;
        }
     }
  }
...

var doIt:Boolean;

var trutherizer:Truth = new Truth();
if ( trutherizer.isTrue( s.equals( t ) ) )
  {
  doIt = true;
  }
else
  {
  doIt = false;
  }



// hint: all the above accomplishes is:
doIt = (s==t);

_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to