Re: Line endings when redirecting output to file on windows.

2018-06-04 Thread Steven Schveighoffer via Digitalmars-d-learn
On 6/3/18 12:24 PM, Bastiaan Veelo wrote: On Sunday, 3 June 2018 at 15:42:48 UTC, rikki cattermole wrote: On 04/06/2018 3:24 AM, Bastiaan Veelo wrote: I need some help understanding where extra '\r' come from when output is redirected to file on Windows. First, this works correctly:   rdmd --

Re: Convert a huge SQL file to CSV

2018-06-04 Thread Steven Schveighoffer via Digitalmars-d-learn
On 6/3/18 2:04 AM, biocyberman wrote: On Friday, 1 June 2018 at 10:15:11 UTC, Martin Tschierschke wrote: On Friday, 1 June 2018 at 09:49:23 UTC, biocyberman wrote: I need to convert a compressed 17GB SQL dump to CSV. A workable solution is to create a temporary mysql database, import the dump,

Re: Confusion/trying to understand CTFE keywords

2018-06-04 Thread Jonathan M Davis via Digitalmars-d-learn
On Monday, June 04, 2018 14:05:28 gdelazzari via Digitalmars-d-learn wrote: > On Monday, 4 June 2018 at 03:18:05 UTC, Jonathan M Davis wrote: > > So, while static _seems_ somewhat inconsistent at first, the > > way it's used is pretty consistent overall. The main > > inconsistency is the places whe

Re: Confusion/trying to understand CTFE keywords

2018-06-04 Thread gdelazzari via Digitalmars-d-learn
On Monday, 4 June 2018 at 03:18:05 UTC, Jonathan M Davis wrote: I think that part of your problem here comes from the fact that you think of enum or static are "CTFE keywords." That's not what they are at all. Yes, they can trigger CTFE, but they're not the only way. ... Thank you very mu

Re: how to define infix function

2018-06-04 Thread Andrea Fontana via Digitalmars-d-learn
On Saturday, 2 June 2018 at 23:17:48 UTC, Simen Kjærås wrote: unittest { import std.algorithm.comparison; alias min = Operator!(std.algorithm.comparison.min); assert(1 /min/ 3 == 1); } Why not: alias Δ = Operator!(std.algorithm.comparison.min); assert(1 /Δ/ 3 == 1); To improve