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
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 =
Of course you're right, my syntax was dodgey. I meant:
var foo : Function = function():* {};
But besides that, my questions still stand ;-)
-J
On Tue, Apr 29, 2008 at 9:45 AM, Bjorn Schultheiss
[EMAIL PROTECTED] wrote:
In the second version your initializing foo as an object.
I'm pretty
: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Josh McDonald
Sent: Monday, April 28, 2008 4:58 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Advanced(?) Actionscript question
Of course you're right, my syntax was dodgey. I meant:
var foo : Function = function
@yahoogroups.com
*Subject:* Re: [flexcoders] Advanced(?) Actionscript question
Of course you're right, my syntax was dodgey. I meant:
var foo : Function = function():* {};
But besides that, my questions still stand ;-)
-J
On Tue, Apr 29, 2008 at 9:45 AM, Bjorn Schultheiss
[EMAIL
mailto:flexcoders@yahoogroups.com ]
On Behalf Of Josh McDonald
Sent: Monday, April 28, 2008 4:58 PM
To: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Advanced(?) Actionscript question
Of course you're right, my syntax was dodgey. I meant:
var foo : Function
[mailto:[EMAIL PROTECTED] *On
Behalf Of *Josh McDonald
*Sent:* Monday, April 28, 2008 8:06 PM
*To:* flexcoders@yahoogroups.com
*Subject:* Re: [flexcoders] Advanced(?) Actionscript question
Thanks for that info.
I'm not really sure about how things work internally, besides some vague
7 matches
Mail list logo