We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The following code compiles with DMD but not with LDC:
module app.d; import std.stdio; struct test { uint a = 42; uint b = 7; uint getA() { uint temp; asm { mov RBX, this; mov EAX, a[RBX]; mov temp, EAX; } return temp; } } public static void main() { writeln("asm 'this' test"); test t; writeln("test.getA(): ", t.getA()); assert(t.getA() == t.a, "getA() failed"); }
Reported by this.getName() in ldc forum.
The text was updated successfully, but these errors were encountered:
@redstar You fixed this, right?
Sorry, something went wrong.
Nope still doesn't work.
No branches or pull requests
The following code compiles with DMD but not with LDC:
Reported by this.getName() in ldc forum.
The text was updated successfully, but these errors were encountered: