enum scope
Walter Bright via Digitalmars-d
digitalmars-d at puremagic.com
Sun Jun 8 10:50:56 PDT 2014
On 6/8/2014 2:15 AM, Jacob Carlborg wrote:
> In Swift you don't have to specify the full enum name if the compiler can infer
> that it's an value of specific enum that is needed:
>
> void foo (UITableViewRowAnimation);
>
> foo(Fade);
>
> Actually in Swift you would append a dot to the enum value:
>
> foo(.Fade);
Does that apply to all symbols in Swift, or just enums?
More information about the Digitalmars-d
mailing list