August 28 Issues » [Issue 24726] Make alias work properly | |||
|---|---|---|---|
| |||
...from anonymous4 <dfj1esp02@sneakemail.com> --- Maybe something like this? --- S instance; lazy xa = instance.x; --- -- | |||
August 28 Issues » [Issue 24726] New: Make alias work properly | |||
|---|---|---|---|
| |||
...struct S
{
int x;
}
S instance;
alias xa = instance.x;
----------------------------
alias m = __traits(getMember, instance... | |||
September 01, 2023 Issues » [Issue 24129] New: ImportC: cannot compile any non-trivial program with multiple translation units/files: fatal error LNK1179: invalid or corrupt file: duplicate COMDAT '__acrt_locale_get_ctype_array_value' | |||
|---|---|---|---|
| |||
...void xa(void) { }
b.c
#include <ctype.h>
int main(void) {
void xa(void);
xa... | |||
September 01, 2016 Learn » Re: Storing a reference | |||
|---|---|---|---|
| |||
...ptr auto a = x(*foo); assert(&a.xa() == null); Your approach is less desirable because... | |||
September 01, 2016 Learn » Storing a reference | |||
|---|---|---|---|
| |||
...ref int a) {
struct A {
ref int xa() { return a; }
}
return A();
}
void main() {
import... | |||
September 13, 2013 General » Re: [OT] Which IDE / Editor do you use? | |||
|---|---|---|---|
| |||
...Editing 2.0' http://youtu.be/eX9m3g5J-XA of course using vim. You might learn... | |||
August 21, 2013 Issues » [Issue 10862] Assignment inside if condition still sometimes accepted | |||
|---|---|---|---|
| |||
...XChangeProperty((Display*)getApp()->getDisplay(),xid,getApp()->xdndTypes,XA_ATOM,32,PropModeReplace,(unsigned char*)getApp()->xdndTypeList... | |||
May 26, 2013 General » Re: D's limited template specialization abilities compared to C++ | |||
|---|---|---|---|
| |||
...int
void main()
{
int a;
X!a xa; // match OK
long b;
X!b xb... | |||
December 25, 2012 General » Re: Learning Haskell makes you a better programmer? | |||
|---|---|---|---|
| |||
...xa@(1:_) = 0
topswops' xa@(x:_) = 1 + topswops' reordered
where
reordered = reverse (take x xa... | |||
July 02, 2012 Issues » [Issue 7965] Invalid outer function scope pointer in some cases | |||
|---|---|---|---|
| |||
...s; }
void g() { assert(fun(s.str) == "xa"); }
}
return Result(S("a"));
}
void main() {
string... | |||
Copyright © 1999-2021 by the D Language Foundation