Hm, interesting. I don't know of anywhere else that has this problem, but I
can't imagine it being all that difficult to implement. If you make a really
nice helper, be sure to put it somewhere that other generators could take
advantage of.

On Mon, Jun 7, 2010 at 12:51 PM, Aron Sogor <[email protected]> wrote:

> In other words:
>
> has anyone implemented importing and using the FQ classname for any
> OOO language?
>
> The as3 port copies the java code generator. Makes sense since the
> syntax is a lot like.
>
> One gotcha in Java you do not need to use imports if you use the fully
> qualified classname like:
>
> some.thing.stuff mystuff= null;
>
>
> Well AS3 does not like only:
>
> Var mystuff:some.thing.stuff = null;
>
>
> It seems it still needs the import if stuff is not in the same package.
>
> like:
>
> Import some.thing.stuff
>
> Var mystuff:some.thing.stuff = null;
>
>
>
> Did anyone had to implement traversing the parsed data to create imports
> b4?
>
> Is there a nice piece of code we can borrow?
>
> Aron
>

Reply via email to