From 4fe0d6e484ce41a55b7846aafa844648cd822610 Mon Sep 17 00:00:00 2001 From: Ray Greenwell Date: Wed, 15 Mar 2006 03:24:46 +0000 Subject: [PATCH] Another note about how as3 can #$^ @# @#$ ^@#$@ @#%&*. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3949 542714f4-19e9-0310-aa3c-eee0fc999fb1 --- src/as/com/threerings/README.txt | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/as/com/threerings/README.txt b/src/as/com/threerings/README.txt index dcc73305e..b2ad8e3bc 100644 --- a/src/as/com/threerings/README.txt +++ b/src/as/com/threerings/README.txt @@ -279,3 +279,11 @@ ActionScript This just might save our butts from insane class proliferation with service listeners. + +- You can't use runtime constants as parameter initializers: + + public const MAX_VALUE :int = 99; + + // this is illegal because MAX_VALUE is not defined until the + // static initializer is run for this class. It's not around at compile time. + public function getCrap (minValue :int, maxValue :int = MAX_VALUE) :Crap