I hereby claim:
- I am aliak00 on github.
- I am aliak (https://keybase.io/aliak) on keybase.
- I have a public key ASApajlvW-T7gDaEsxnScoNSJCFso6QrWCDDFGos2YeK1Ao
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
template hasNonTrivialCopyConstructor(T) { | |
bool isCopyConstructorFor(alias ctor, T)() { | |
// Specialized function that checks specifically for "ref" in a string | |
bool containsRef(string str) { | |
foreach (i, c; str) { | |
if (c == 'r') { | |
if (i + 2 < str.length) { | |
return str[i + 1] == 'e' && str[i + 2] == 'f'; | |
} | |
} |
import std.stdio; | |
template isTransformedWrapper(W) { | |
enum isTransformedWrapper = is(W : TrasformedWrapper!T, T...); | |
} | |
struct Wrapped(T) { | |
T value; | |
} |
#!/usr/bin/env bash | |
# | |
# This is just convenience to make updating dmd for homebrew a one liner (ish) | |
# You still need to "git commit" the changes and push and make a PR. | |
# | |
show_help() { | |
echo "usage: $(basename "$0") -f <brew-fork-dir> -v <released-dmd-version>" | |
} |
/* | |
Copyright 2017 Ali Akhtarzada | |
Licensed under the Apache License, Version 2.0 (the "License"); | |
you may not use this file except in compliance with the License. | |
You may obtain a copy of the License at | |
http://www.apache.org/licenses/LICENSE-2.0 |