Re: Is betterC affect to compile time?

2019-07-26 Thread Max Haughton via Digitalmars-d-learn
On Thursday, 25 July 2019 at 14:20:03 UTC, Ali Çehreli wrote: On 07/25/2019 05:46 AM, Oleg B wrote: On Thursday, 25 July 2019 at 12:34:15 UTC, rikki cattermole wrote: Those restrictions don't stop at runtime. It's vary sad. What reason for such restrictions? It's fundamental idea or

Re: Is betterC affect to compile time?

2019-07-26 Thread Jonathan M Davis via Digitalmars-d-learn
On Thursday, July 25, 2019 6:13:38 PM MDT Mike Franklin via Digitalmars-d- learn wrote: > On Thursday, 25 July 2019 at 18:37:49 UTC, Jonathan M Davis wrote: > > There's probably at least one bug report on it, but as I > > understand it, it's not a bug in the sense that the > > implementation is

Re: Is betterC affect to compile time?

2019-07-26 Thread Kagamin via Digitalmars-d-learn
On Thursday, 25 July 2019 at 12:46:48 UTC, Oleg B wrote: What reason for such restrictions? It's fundamental idea or temporary implementation? I think it's a dmd limitation. Currently it has a bug that it can still generate code for ctfe templated functions, and they will fail to link if

Re: Is betterC affect to compile time?

2019-07-25 Thread Mike Franklin via Digitalmars-d-learn
On Thursday, 25 July 2019 at 18:37:49 UTC, Jonathan M Davis wrote: There's probably at least one bug report on it, but as I understand it, it's not a bug in the sense that the implementation is currently expected to handle such a case. It's an area where betterC should be improved upon, but

Re: Is betterC affect to compile time?

2019-07-25 Thread Jonathan M Davis via Digitalmars-d-learn
On Thursday, July 25, 2019 8:20:03 AM MDT Ali Çehreli via Digitalmars-d- learn wrote: > On 07/25/2019 05:46 AM, Oleg B wrote: > > On Thursday, 25 July 2019 at 12:34:15 UTC, rikki cattermole wrote: > >> Those restrictions don't stop at runtime. > > > > It's vary sad. > > > > What reason for such

Re: Is betterC affect to compile time?

2019-07-25 Thread bauss via Digitalmars-d-learn
On Thursday, 25 July 2019 at 18:06:02 UTC, Jonathan Marler wrote: On Thursday, 25 July 2019 at 12:46:48 UTC, Oleg B wrote: On Thursday, 25 July 2019 at 12:34:15 UTC, rikki cattermole wrote: Those restrictions don't stop at runtime. It's vary sad. What reason for such restrictions? It's

Re: Is betterC affect to compile time?

2019-07-25 Thread Jonathan Marler via Digitalmars-d-learn
On Thursday, 25 July 2019 at 12:46:48 UTC, Oleg B wrote: On Thursday, 25 July 2019 at 12:34:15 UTC, rikki cattermole wrote: Those restrictions don't stop at runtime. It's vary sad. What reason for such restrictions? It's fundamental idea or temporary implementation? Yes it is very sad.

Re: Is betterC affect to compile time?

2019-07-25 Thread Ali Çehreli via Digitalmars-d-learn
On 07/25/2019 05:46 AM, Oleg B wrote: On Thursday, 25 July 2019 at 12:34:15 UTC, rikki cattermole wrote: Those restrictions don't stop at runtime. It's vary sad. What reason for such restrictions? It's fundamental idea or temporary implementation? It looks like a bug to me. Ali

Re: Is betterC affect to compile time?

2019-07-25 Thread Oleg B via Digitalmars-d-learn
On Thursday, 25 July 2019 at 12:34:15 UTC, rikki cattermole wrote: Those restrictions don't stop at runtime. It's vary sad. What reason for such restrictions? It's fundamental idea or temporary implementation?

Re: Is betterC affect to compile time?

2019-07-25 Thread rikki cattermole via Digitalmars-d-learn
On 26/07/2019 12:30 AM, Oleg B wrote: On Thursday, 25 July 2019 at 12:20:04 UTC, Mike Franklin wrote: If you read the documentation for betterC (https://dlang.org/spec/betterc.html#consequences) you'll see that there are features of the D language which are not supported. Therefore,

Re: Is betterC affect to compile time?

2019-07-25 Thread Oleg B via Digitalmars-d-learn
On Thursday, 25 July 2019 at 12:20:04 UTC, Mike Franklin wrote: If you read the documentation for betterC (https://dlang.org/spec/betterc.html#consequences) you'll see that there are features of the D language which are not supported. Therefore, libraries that use such features (e.g.

Re: Is betterC affect to compile time?

2019-07-25 Thread Mike Franklin via Digitalmars-d-learn
On Thursday, 25 July 2019 at 12:01:40 UTC, Oleg B wrote: Hello everyone! I try build this code with betterC import core.stdc.stdio; import std.format : format; extern(C) int main() { mixin(format!`enum str = "%s\0";`("hello")); fprintf(stderr, "%s\n", str.ptr); return 0; } but

Is betterC affect to compile time?

2019-07-25 Thread Oleg B via Digitalmars-d-learn
Hello everyone! I try build this code with betterC import core.stdc.stdio; import std.format : format; extern(C) int main() { mixin(format!`enum str = "%s\0";`("hello")); fprintf(stderr, "%s\n", str.ptr); return 0; } but compilation fails