CTFE C compiler

2016-11-21 Thread Johan Engelen via Digitalmars-d
In LLVMweekly [1], I read the following: "You may be be interested, amazed, and/or horrified to learn of constexpr-8cc [2]. It provides a compile-time C compiler implemented as C++14 constant expressions." The constexpr compiler is generated using ELVM [3], a C compiler that targets a bunch

Re: null this

2016-11-21 Thread rikki cattermole via Digitalmars-d-learn
On 21/11/2016 11:25 PM, Satoshi wrote: Hello, how can calling method on local struct throw "null this"? struct is initialized by .init and have default values. struct Foo { Bar bar; static struct Bar { float x, y, z; } Bar getBar() { return bar; } } then Foo foo =

Re: null this

2016-11-21 Thread Satoshi via Digitalmars-d-learn
cast(ulong) but is not null. It won't work just in special cases what I cannot reproduce easily.

null this

2016-11-21 Thread Satoshi via Digitalmars-d-learn
Hello, how can calling method on local struct throw "null this"? struct is initialized by .init and have default values. struct Foo { Bar bar; static struct Bar { float x, y, z; } Bar getBar() { return bar; } } then Foo foo = Foo.init; auto b = foo.getBar(); // throw "null

[Issue 16116] Infinite loop on (somewhat complex) simd math

2016-11-21 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16116 --- Comment #1 from Walter Bright --- Simpler test case: void foo() { __vector(short[8]) v; int i; v = v * i; } --

[Issue 16707] New: [Templates] run variadic templates example failed

2016-11-21 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16707 Issue ID: 16707 Summary: [Templates] run variadic templates example failed Product: D Version: D2 Hardware: All URL: http://dlang.org/ OS: All Status: NEW

[Issue 16098] align(32) not respected for stack variables

2016-11-21 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16098 Walter Bright changed: What|Removed |Added CC|

[Issue 16092] AVX registers YMM0-YMM7 are inaccessible to 32-bit asm

2016-11-21 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16092 Walter Bright changed: What|Removed |Added CC|

Re: Is there a way to identfy Windows version?

2016-11-21 Thread Jonathan M Davis via Digitalmars-d-learn
On Monday, November 21, 2016 08:57:11 Bauss via Digitalmars-d-learn wrote: > Is there a way to identify the Windows version? Such as if it's > XP, Vista, 7, 8 or 10? Either some way to tweak with version > flags or something in the standard library. Phobos doesn't have anything like that, but you

Is there a way to identfy Windows version?

2016-11-21 Thread Bauss via Digitalmars-d-learn
Is there a way to identify the Windows version? Such as if it's XP, Vista, 7, 8 or 10? Either some way to tweak with version flags or something in the standard library.

<    1   2