In the second version your initializing foo as an object.
I'm pretty certain you cant do,
var foo:Function = {trace('foo')}
On 29/04/2008, at 9:37 AM, Josh McDonald wrote:
Guys,
what's the difference (if it exists) between:
public function foo() : * {}
and:
public var foo : Function = {};
Does it exist? I assume you can call Bar.foo() in both cases, and
foo shows up as a variable in describeType() in the second instance?
Are there other details I'm not aware of?
Cheers,
-J
--
"Therefore, send not to know For whom the bell tolls. It tolls for
thee."
:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: [EMAIL PROTECTED]