Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Two static ifs #25

Merged
merged 2 commits into from Dec 8, 2013
Merged

Two static ifs #25

merged 2 commits into from Dec 8, 2013

Conversation

ghost
Copy link

@ghost ghost commented Dec 8, 2013

Alright, fixed the markdown file this time. And two static ifs. I hope I got those line numbers right.

PhilippeSigaud added a commit that referenced this pull request Dec 8, 2013
@PhilippeSigaud PhilippeSigaud merged commit bc751e6 into PhilippeSigaud:master Dec 8, 2013
@PhilippeSigaud
Copy link
Owner

Thanks!

@PhilippeSigaud
Copy link
Owner

Also, now (DMD 2.064) the syntax could be even simpler:

enum isTuple(T) =
    is(typeof(
    {
        void tupleTester(InnerTypes...)(Tuple!(InnerTypes) tup) {}
        tupleTester(T.init);
    }));

Of course, now, is() is now also able to deal with T..., so the entire exercise is a bit moot.

Sigh I should really take the time to rewrite this document.

@ghost ghost deleted the static-if branch December 8, 2013 17:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant