DIP 50 - AST macros

Simen Kjærås simen.kjaras at gmail.com
Sun Nov 17 05:36:15 PST 2013


On 2013-11-17 11:37, Jacob Carlborg wrote:
> On 2013-11-17 09:58, Walter Bright wrote:
>
>> Think about the desired feature mentioned earlier in this thread of
>> being able to insert a "return;" statement, causing what looks like a
>> function call to return from the caller.
>
> I'm not entirely sure what you're saying. Could you please post a link
> to the post mentioning this or show an example.

I believe it is basically this:

int bar() {
     foo(return 3);
     return 5;
}


If that program is allowed to compile, and to return 3.


More information about the Digitalmars-d mailing list