January 04, 2023 Learn » Re: Address of a class object | |||
|---|---|---|---|
| |||
...sub = new SubClass();
printObject!sub;
}
void printObject(alias obj)() {
writeln("\n");
writeln("name : ", obj.stringof... | |||
January 04, 2023 Issues » [Issue 23599] New: tuples not expanded in struct initializer | |||
|---|---|---|---|
| |||
...issuecomment-1369269255
```
struct S { int x, y; }
alias Seq(T...) = T;
void f()
{
S s0... | |||
January 04, 2023 Issues » [Issue 23598] New: Another nasty forward reference bug | |||
|---|---|---|---|
| |||
...1)
{
alias x = f!(a[1]);
alias sort = a;
}
else
alias sort = a;
}
alias SortedItems... | |||
January 03, 2023 Learn » Re: Why does this code only work with `T` and not `typeof(T)`? | |||
|---|---|---|---|
| |||
...code fails to compile:
void main() {
alias T = int;
alias TT = typeof(T);
}
Error: type... | |||
January 03, 2023 Issues » [Issue 23595] Error: undefined identifier with static if and module/import order | |||
|---|---|---|---|
| |||
...is forward referenced
---
module simpleaudio;
struct AudioOutputThread
{
alias Sample = AudioPcmOutThreadImplementation.Sample;
}
import core.types;
class... | |||
January 03, 2023 Issues » [Issue 23595] Error: undefined identifier with static if and module/import order | |||
|---|---|---|---|
| |||
...module core.types;
static if (true)
alias ulong c_ulong;
alias c_ulong pthread_t;
-- | |||
January 03, 2023 Issues » [Issue 23595] New: Error: undefined identifier with static if and module/import order | |||
|---|---|---|---|
| |||
...PTHREAD_MUTEX_T`
---
module simpleaudio;
struct AudioOutputThread
{
alias Sample = AudioPcmOutThreadImplementation.Sample;
}
import core.types;
class... | |||
January 03, 2023 Learn » Re: How should I return multiple const values from a function? | |||
|---|---|---|---|
| |||
...template Fun(Key, Value)
{
import std.typecons;
alias Tup = Tuple!(const(Key), const(Value));
enum... | |||
January 03, 2023 Learn » Re: How should I return multiple const values from a function? | |||
|---|---|---|---|
| |||
...template Fun(Key, Value)
{
import std.typecons;
alias Tup = Tuple!(const(Key), const(Value));
enum... | |||
January 02, 2023 Genel » Re: Çokuzlu Tuple Örnekleri | |||
|---|---|---|---|
| |||
...std.typecons, std.stdio : writefln;
void main()
{
alias Ş = Tuple!( int, "plaka",
string, "şehir");
auto... | |||
Copyright © 1999-2021 by the D Language Foundation