April 28, 2022 Learn » Re: How do I get the screen resolution? | |||
|---|---|---|---|
| |||
...it anyway: --- // use reflection to bypass `private` alias MonitorInfo = __traits(getMember, arsd.simpledisplay.SimpleWindow, "MonitorInfo... | |||
April 28, 2022 Issues » [Issue 22651] undefined reference to ModuleInfo when using imported | |||
|---|---|---|---|
| |||
...d
import common;
/// main.d
import common;
alias x = myimported!();
import empty;
void main(){}
compile... | |||
April 27, 2022 Learn » Re: generic function instance without call | |||
|---|---|---|---|
| |||
...an alias that (fully) specialize the generic func and take the address using the alias... | |||
April 27, 2022 Learn » generic function instance without call | |||
|---|---|---|---|
| |||
...calling the function?
Example:
```d
auto foo(alias fn, Args...)(auto ref Args args){
///return... | |||
April 27, 2022 Learn » Re: A template construct like using() | |||
|---|---|---|---|
| |||
...Bitmap
{
}
struct PushPopBitmap
{
Bitmap* bitmap;
Bitmap* old;
alias bitmap this;
this(Bitmap* bmp) {
old = set... | |||
April 27, 2022 Learn » Re: Reference counting example | |||
|---|---|---|---|
| |||
...import btl.autoptr;
import btl.vector;
alias ARRAY = Vector;
alias RC = RcPtr;
class Animal {
void... | |||
April 26, 2022 Learn » Re: Reference counting example | |||
|---|---|---|---|
| |||
...import std.experimental.allocator.mallocator; import automem; alias RC(T) = RefCounted!(T, Mallocator); // Optional default... | |||
April 26, 2022 General » Re: Any potential infrastructure related projects or experiments? | |||
|---|---|---|---|
| |||
...of code:
struct MultiRet(T...) {
T values;
alias values this;
}
auto multiRet(T...)(T values... | |||
April 26, 2022 Genel » Re: Static Struct | |||
|---|---|---|---|
| |||
...test3.writeln(": ",
typeof(test3[0].s).stringof);
alias func = int function();
auto test4 = funAr.map... | |||
April 25, 2022 Learn » Re: Get UDAs of self's declaration as a member? | |||
|---|---|---|---|
| |||
...Bar {
Foo!(SPECIAL.yes) foo;
}
alias FooSpecial = Foo!(SPECIAL.yes);
alias FooRegular = Foo!(SPECIAL.no... | |||
Copyright © 1999-2021 by the D Language Foundation