Goto skips declaration

goto-go goto-go at live.com
Wed Oct 31 04:59:34 UTC 2018


On Tuesday, 30 October 2018 at 06:37:22 UTC, Bauss wrote:
>
> D is not Javascript and has no concept of hoisting.

C is not javascript either...

int main()
{
   goto Y;
   puts("you will not see this");

Y:
   puts("Hello D");

   return 0;
}


// so.. as first asked, why does D require you to put in extra 
brackets?


More information about the Digitalmars-d mailing list