Re: The first example in the Learning D book, wont compile

2018-03-26 Thread Graham Fawcett via Digitalmars-d-learn
On Sunday, 25 March 2018 at 21:02:26 UTC, Ali wrote: On Sunday, 25 March 2018 at 20:52:29 UTC, Ali wrote: On Sunday, 25 March 2018 at 20:45:58 UTC, Ali wrote: I now see my typo, should be retro, not range We need better IDEs, this would have been easily highlighted by a good ide I pasted yo

Re: Creating Tuple or AliasSeq

2017-04-07 Thread Graham Fawcett via Digitalmars-d-learn
On Friday, 7 April 2017 at 10:26:24 UTC, ANtlord wrote: On Friday, 7 April 2017 at 07:46:40 UTC, Ali Çehreli wrote: [...] I can't understand. Documentation of cartesianProduct points out about finite arrays. At least one of arrays must be a inifinte array. As far as I know finite arrays is `

Re: Error: cannot return non-void from void function

2014-11-27 Thread Graham Fawcett via Digitalmars-d-learn
On Thursday, 27 November 2014 at 13:07:59 UTC, Suliman wrote: Full function look like this: auto parseConfig() { auto config = Ini.Parse(getcwd ~ "\\" ~ "config.ini"); string txtlinks = getcwd ~ "\\" ~ config.getKey("input_links"); if(!exists(txtlinks)) {

Re: with (auto p = new ...)

2014-09-23 Thread Graham Fawcett via Digitalmars-d-learn
Sorry, I sent that last message before I intended to. How about: auto b = new Button(); with (b) { ... } 'b' is explicitly outside of the scope of the 'with' block, which may not be what you intended. But you could use more braces to add an extra level of scope if that's an i

Re: with (auto p = new ...)

2014-09-23 Thread Graham Fawcett via Digitalmars-d-learn
How about: auto b - new Button(); with (b) { On Tuesday, 23 September 2014 at 15:19:59 UTC, Andre wrote: Hi, I just wonder why "with (auto p = new ...)" is not working. It would be some syntax sugar in this scenario: with (auto p = new Panel()) { parent = t