Re: Re: GEC Compilation of Externals

Eric Bezault <ericb-D6Qt/9opevxWk0Htik3J/[email protected]>
Newsgroups gmane.comp.lang.eiffel.gobo.general
Organization Gobo
Message-ID <[email protected]>
Eric Bezault wrote:
> Franck Arnaud wrote:
>>Could gec generate "return ALIAS-CONTENT;" if there's 
>>no 'return' in the alias content. Then it can be both 
>>ECMA- and legacy 'compliant'. (With a warning for the 
>>legacy case.)
> 
> I'll do that.

It's now in CVS. Note that what is implemented is stupid:
it just looks for the string "return" in the alias, without
any assumption about the C syntax. So it won't work when
we have:

    alias
        "[
             "return"
         ]"

or:

    alias
        "returning"

or when the return keyword is hidden in a macro:

    alias
        "MACRO"

with:

#define MACRO   return 3;

But most of the time it should work.

I only checked that the code in Gobo (using ECMA semantics) still
works. I'll let Brian check that it also works with legacy code.

-- 
Eric Bezault
mailto:ericb-D6Qt/9opevxWk0Htik3J/[email protected]
http://www.gobosoft.com




------------------------ Yahoo! Groups Sponsor --------------------~--> 
Protect your PC from spy ware with award winning anti spy technology. It's free.
http://us.click.yahoo.com/97bhrC/LGxNAA/yQLSAA/saFolB/TM
--------------------------------------------------------------------~-> 

To Post a message, send it to:   [email protected]
To Unsubscribe, send a blank message to: [email protected] 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/gobo-eiffel/

<*> To unsubscribe from this group, send an email to:
    [email protected]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.