Re: Gotcha with photos' documentation

2022-12-08 Thread H. S. Teoh via Digitalmars-d-learn
On Thu, Dec 08, 2022 at 05:21:52PM -0800, H. S. Teoh via Digitalmars-d-learn wrote: [...] > I'll see if I can reword this to be more explicit. [...] https://github.com/dlang/phobos/pull/8646 T -- Don't modify spaghetti code unless you can eat the consequences.

Re: Gotcha with photos' documentation

2022-12-08 Thread H. S. Teoh via Digitalmars-d-learn
On Thu, Dec 08, 2022 at 09:15:45PM +0100, Christian Köstlin via Digitalmars-d-learn wrote: > Recently I stumbled upon a small issue in dlang's docs. > I wanted to look up uniq in std.algorithm. Started from > https://dlang.org/phobos/std_algorithm.html and clicked uniq, no > problem, all good. But

Gotcha with photos' documentation

2022-12-08 Thread Christian Köstlin via Digitalmars-d-learn
Recently I stumbled upon a small issue in dlang's docs. I wanted to look up uniq in std.algorithm. Started from https://dlang.org/phobos/std_algorithm.html and clicked uniq, no problem, all good. But my code did not work. After some debugging I saw, that for some inputs uniq just did not work. I

Re: printf, writeln, writefln

2022-12-08 Thread Salih Dincer via Digitalmars-d-learn
On Thursday, 8 December 2022 apt 17:39:58 UTC, Ali Çehreli wrote: > ```d > void stringCopy(Chars)(string source, > ref Chars target) > >sample.stringCopy = cTxt; // disappeared ? char > ``` I find the expression above extremely confusing. I am used to assignment express

Re: printf, writeln, writefln

2022-12-08 Thread Ali Çehreli via Digitalmars-d-learn
On 12/8/22 08:21, Salih Dincer wrote: > void stringCopy(Chars)(string source, > ref Chars target) >sample.stringCopy = cTxt; // disappeared ? char Nothing disappeared on my system. (?) Going off-topic, I find the expression above extremely confusing. I am used to ass

Re: gcc -E -dD; dstep; sqlite3

2022-12-08 Thread Ali Çehreli via Digitalmars-d-learn
On 12/8/22 06:28, johannes wrote: > enum __FLT128_MAX__ = 1.18973149535723176508575932662800702e+4932F128; That literal is not legal D. The "F128" characters at the end are extra. Besides, D does not have a 128-bit floating point type. Ali (Sorry for double e-mail.)

Re: gcc -E -dD; dstep; sqlite3

2022-12-08 Thread johannes via Digitalmars-d-learn
/we-/we/sqlite3/package.d(121): Error: semicolon expected following auto declaration, not `32` /we-/we/sqlite3/package.d(121): Error: declaration expected, not `32` /we-/we/sqlite3/package.d(122): Error: semicolon expected following auto declaration, not `32` /we-/we/sqlite3/package.d(122): Erro

Re: printf, writeln, writefln

2022-12-08 Thread Salih Dincer via Digitalmars-d-learn
On Tuesday, 6 December 2022 at 23:41:09 UTC, H. S. Teoh wrote: On Tue, Dec 06, 2022 at 11:07:32PM +, johannes via Digitalmars-d-learn wrote: //-- the result should be f.i. "the sun is shining" //-- sqlite3_column_text returns a constant char* a \0 delimited c-string printf("%s\n",sqlite3_c

Re: printf, writeln, writefln

2022-12-08 Thread Salih Dincer via Digitalmars-d-learn
On Tuesday, 6 December 2022 at 23:41:09 UTC, H. S. Teoh wrote: On Tue, Dec 06, 2022 at 11:07:32PM +, johannes via Digitalmars-d-learn wrote: //-- the result should be f.i. "the sun is shining" //-- sqlite3_column_text returns a constant char* a \0 delimited c-string printf("%s\n",sqlite3_c

Re: printf, writeln, writefln

2022-12-08 Thread johannes via Digitalmars-d-learn
Thank you all for those explanations. Helps a lot!

gcc -E -dD; dstep; sqlite3

2022-12-08 Thread johannes via Digitalmars-d-learn
doing the following : (sqlite3 version 340) gcc -E -dD sqlite3ext.h > sqlite3ext.i dstep sqlit3ext.i -o/we/sqlite3/package.d when compiling a program using this interface (import we.sqlite3), I receive Errors like : enum __FLT128_MAX__ = 1.18973149535723176508575932662800702e+4932F128;