Thanks, Matt.

 

I’m from the JAVA-area and there you don’t need an import statement if you fully qualify your types. I more or less expected ActionScript to behave similarly.

 

Good that you managed the wildcard thing, that helps in my case, although it’s a not-so-nice solution.

 

Cheers,

Franck

 


From: [email protected] [mailto:[email protected]] On Behalf Of Matt Chotin
Sent: Friday, September 08, 2006 5:47 AM
To: [email protected]
Subject: RE: [flexcoders] Why is import mandatory?

 

You can learn more about the actual language construct in the directives section of the ES4 spec: http://developer.mozilla.org/es4/spec/chapter_16_directives.html

 

The language designers decided that introducing a class into the system requires explicitly bringing it in (we actually had to fight for wildcard importing).  I don’t have a great justification for you, only that it’s intentional.

 

Matt


From: [EMAIL PROTECTED]ups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Franck de Bruijn
Sent: Thursday, September 07, 2006 12:27 PM
To: [EMAIL PROTECTED]ups.com
Subject: [flexcoders] Why is import mandatory?

 

Hi,

 

Just a small actionscript question.

 

I have the following interface definition:

 

package a.b.c

{

    public interface SecurityWebservice

    {

         function findUser(userId:String):d.e.f.UserDto;

    }

}

 

It does not compile (1046: Type was not found), which I find strange since I specify the fully qualified name of the type.

 

When I include the statement ‘import d.e.f.UserDto;’ it compiles. Can someone explain why this is?

 

Thanks,

Franck

__._,_.___

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com





SPONSORED LINKS
Software development tool Software development Software development services
Home design software Software development company

Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___

Reply via email to