Re: Release Candidate D 2.067.0-rc1

2015-03-19 Thread Rainer Schuetze via Digitalmars-d-announce
On 18.03.2015 01:46, Martin Nowak wrote: On 03/18/2015 01:13 AM, Manu via Digitalmars-d-announce wrote: Yes. Has for a while. We're really hanging out for the 32bit COFF libs to ship with DMD. Well, someone should add a build target to

Re: A few notes on choosing between Go and D for a quick project

2015-03-19 Thread Almighty Bob via Digitalmars-d
On Friday, 20 March 2015 at 00:30:25 UTC, deadalnix wrote: On Thursday, 19 March 2015 at 20:43:55 UTC, Almighty Bob wrote: Its the emperor's new clothes. Type inference is useful. Deal with it. I like type inference. I dont like voldomort types, the cost/benefit is fail.

[Issue 14310] [REG2.067a] InvalidMemoryOperationError in std.stdio.File.byLine

2015-03-19 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14310 Martin Krejcirik m...@krej.cz changed: What|Removed |Added Status|NEW |RESOLVED

[Issue 13856] std.stdio.readln stomps arrays

2015-03-19 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13856 Martin Krejcirik m...@krej.cz changed: What|Removed |Added CC||m...@krej.cz --- Comment #4

Re: 2nd London D Programmers Meetup - Robot Tank Battle Tournament

2015-03-19 Thread Kingsley via Digitalmars-d-announce
Just a reminder - this is happening next Tuesday - please come along if you are in London and fancy a bit of D programming fun. On Thursday, 26 February 2015 at 15:56:13 UTC, Kingsley wrote: Hi, The second London D Programmers Meetup is now officially scheduled for Tuesday 24th March. As

Re: A few notes on choosing between Go and D for a quick project

2015-03-19 Thread weaselcat via Digitalmars-d
On Thursday, 19 March 2015 at 23:02:07 UTC, w0rp wrote: On Thursday, 19 March 2015 at 20:43:55 UTC, Almighty Bob wrote: On Thursday, 19 March 2015 at 10:07:06 UTC, John Colvin wrote: On Tuesday, 17 March 2015 at 18:29:20 UTC, Almighty Bob wrote: On Tuesday, 17 March 2015 at 11:48:15 UTC, Nick

Re: Enhancement: issue error on all public functions that are missing ddoc sections

2015-03-19 Thread Walter Bright via Digitalmars-d
On 3/19/2015 2:43 AM, deadalnix wrote: Here is what will pass review : Presumably the reviewers will have some common sense and taste. class User { /** * Accessor to get the id of the user. * * @return : the id of the user */ uint getUserID() { ... } /**

Re: Enhancement: issue error on all public functions that are missing ddoc sections

2015-03-19 Thread deadalnix via Digitalmars-d
On Thursday, 19 March 2015 at 22:05:51 UTC, Walter Bright wrote: On 3/19/2015 2:40 AM, deadalnix wrote: And I'm sorry, but if most function require DDoc, your code probably sucks quite badly and some renaming should be considered. I've never seen any code that self-documented why. Indeed,

Re: Enhancement: issue error on all public functions that are missing ddoc sections

2015-03-19 Thread bachmeier via Digitalmars-d
On Thursday, 19 March 2015 at 22:14:02 UTC, Jeremy Powers wrote: As for the documentation - yeah, don't write docs that duplicate what is there in the method signature. I'm not a big fan of that. It's one of those slippery slope things. The documentation should be written for a new D user,

[Issue 14310] [REG2.067a] InvalidMemoryOperationError in std.stdio.File.byLine

2015-03-19 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14310 --- Comment #3 from Martin Krejcirik m...@krej.cz --- It depend(In reply to Vladimir Panteleev from comment #2) I can't reproduce this on Windows. Looks like a duplicate of issue 13856 and particularly issue 14005 except for that this one is a

Re: A few notes on choosing between Go and D for a quick project

2015-03-19 Thread Almighty Bob via Digitalmars-d
On Thursday, 19 March 2015 at 23:02:07 UTC, w0rp wrote: No it doesn't. The private bits are still private, the public bits are still public. All it does is complicate the user side. Its the emperor's new clothes. It's not possible to construct a voldemort type outside of the function

Re: Enhancement: issue error on all public functions that are missing ddoc sections

2015-03-19 Thread Jonathan M Davis via Digitalmars-d
On Thursday, March 19, 2015 22:27:33 deadalnix via Digitalmars-d wrote: On Thursday, 19 March 2015 at 22:05:51 UTC, Walter Bright wrote: On 3/19/2015 2:40 AM, deadalnix wrote: And I'm sorry, but if most function require DDoc, your code probably sucks quite badly and some renaming should

Re: Enhancement: issue error on all public functions that are missing ddoc sections

2015-03-19 Thread deadalnix via Digitalmars-d
On Thursday, 19 March 2015 at 23:45:03 UTC, bachmeier wrote: On Thursday, 19 March 2015 at 22:14:02 UTC, Jeremy Powers wrote: As for the documentation - yeah, don't write docs that duplicate what is there in the method signature. I'm not a big fan of that. It's one of those slippery slope

Re: Enhancement: issue error on all public functions that are missing ddoc sections

2015-03-19 Thread deadalnix via Digitalmars-d
On Thursday, 19 March 2015 at 22:04:01 UTC, Walter Bright wrote: On 3/19/2015 2:43 AM, deadalnix wrote: Here is what will pass review : Presumably the reviewers will have some common sense and taste. class User { /** * Accessor to get the id of the user. * * @return : the id

[Issue 14310] [REG2.067a] InvalidMemoryOperationError in std.stdio.File.byLine

2015-03-19 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14310 Vladimir Panteleev thecybersha...@gmail.com changed: What|Removed |Added CC|

[Issue 14310] [REG2.067a] InvalidMemoryOperationError in std.stdio.File.byLine

2015-03-19 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14310 Martin Krejcirik m...@krej.cz changed: What|Removed |Added Component|druntime|Phobos --

Re: A few notes on choosing between Go and D for a quick project

2015-03-19 Thread deadalnix via Digitalmars-d
On Thursday, 19 March 2015 at 20:43:55 UTC, Almighty Bob wrote: Its the emperor's new clothes. Type inference is useful. Deal with it.

Re: The next iteration of scope

2015-03-19 Thread deadalnix via Digitalmars-d
On Wednesday, 18 March 2015 at 13:01:50 UTC, Oren Tirosh wrote: The scope storage class is a two way contract. The function promises not to escape the reference. The caller promises to ensure the storage that the reference is pointing to will remain valid for the duration of the function call.

[Issue 14301] [2.067-rc1] Private symbols of module conflicts with public from another

2015-03-19 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14301 Ivan Kazmenko ga...@mail.ru changed: What|Removed |Added CC||ga...@mail.ru --- Comment #11

Re: Is it possible to call D functions from C++

2015-03-19 Thread krzaq via Digitalmars-d
On Thursday, 19 March 2015 at 08:38:45 UTC, Kagamin wrote: Hmm... I read it as it shall have the return type of int, but if not, then it's implementation-defined. In that case, I refer you to https://www.ietf.org/rfc/rfc2119.txt

Re: Is it possible to call D functions from C++

2015-03-19 Thread krzaq via Digitalmars-d
On Thursday, 19 March 2015 at 07:42:48 UTC, Kagamin wrote: On Wednesday, 18 March 2015 at 15:54:04 UTC, krzaq wrote: Oh, right. I'm sorry, I assumed void main() means D, since it's not legit C++. C++ allows implementation-defined return type of main. I'm afraid that you've mistaken C++ for

Re: Is it possible to call D functions from C++

2015-03-19 Thread Kagamin via Digitalmars-d
On Thursday, 19 March 2015 at 08:32:10 UTC, krzaq wrote: but otherwise its type is implementation-defined. This.

Re: Enhancement: issue error on all public functions that are missing ddoc sections

2015-03-19 Thread Walter Bright via Digitalmars-d
On 3/18/2015 3:05 PM, Brian Schott wrote: On Wednesday, 18 March 2015 at 18:48:53 UTC, Walter Bright wrote: I'm fed up with this problem. It is actively hurting us every day. https://issues.dlang.org/show_bug.cgi?id=14307 Anyone want to take this on? Shouldn't be particularly difficult.

Re: Enhancement: issue error on all public functions that are missing ddoc sections

2015-03-19 Thread deadalnix via Digitalmars-d
On Wednesday, 18 March 2015 at 19:43:47 UTC, Andrei Alexandrescu wrote: On 3/18/15 12:28 PM, Jacob Carlborg wrote: On 2015-03-18 19:48, Walter Bright wrote: I'm fed up with this problem. It is actively hurting us every day. https://issues.dlang.org/show_bug.cgi?id=14307 Anyone want to take

Re: Enhancement: issue error on all public functions that are missing ddoc sections

2015-03-19 Thread deadalnix via Digitalmars-d
On Wednesday, 18 March 2015 at 19:28:44 UTC, Jacob Carlborg wrote: On 2015-03-18 19:48, Walter Bright wrote: I'm fed up with this problem. It is actively hurting us every day. https://issues.dlang.org/show_bug.cgi?id=14307 Anyone want to take this on? Shouldn't be particularly difficult.

[Issue 12744] auto ref crashes DMD on ASSERT

2015-03-19 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12744 --- Comment #1 from Tomer Filiba tomerfil...@gmail.com --- happens on dmd 2.66.1 as well: void f(int x, out int y) { } void g(ref ParameterTypeTuple!f params) { f(params); } dmd: mtype.c:9529: void Parameter::toDecoBuffer(OutBuffer*):

Re: Is it possible to call D functions from C++

2015-03-19 Thread krzaq via Digitalmars-d
On Thursday, 19 March 2015 at 08:33:07 UTC, Kagamin wrote: On Thursday, 19 March 2015 at 08:32:10 UTC, krzaq wrote: but otherwise its type is implementation-defined. This. I'm not sure what you're failing to understand here. It **shall* have the return type of int. The rest (as in:

Re: Is it possible to call D functions from C++

2015-03-19 Thread Kagamin via Digitalmars-d
Hmm... I read it as it shall have the return type of int, but if not, then it's implementation-defined.

Re: Enhancement: issue error on all public functions that are missing ddoc sections

2015-03-19 Thread Kagamin via Digitalmars-d
Indeed, dfmt and/or dfix can handle that just fine. They can also try to differentiate between public and private types.

Re: Mental models of programs [was A few notes on choosing between Go and D for a quick project]

2015-03-19 Thread Paulo Pinto via Digitalmars-d
On Thursday, 19 March 2015 at 08:17:42 UTC, Russel Winder wrote: On Wed, 2015-03-18 at 13:27 +, CraigDillabaugh via Digitalmars-d wrote: […] There is quite possibly something too that, and as I imagine with more functional experience it will come easier to me. However, I still think

[Issue 14308] New: Compiling druntime with -release breaks range exceptions

2015-03-19 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14308 Issue ID: 14308 Summary: Compiling druntime with -release breaks range exceptions Product: D Version: unspecified Hardware: All OS: All Status: NEW

Re: Enhancement: issue error on all public functions that are missing ddoc sections

2015-03-19 Thread Don via Digitalmars-d
On Wednesday, 18 March 2015 at 22:05:18 UTC, Brian Schott wrote: On Wednesday, 18 March 2015 at 18:48:53 UTC, Walter Bright wrote: I'm fed up with this problem. It is actively hurting us every day. https://issues.dlang.org/show_bug.cgi?id=14307 Anyone want to take this on? Shouldn't be

Re: A few notes on choosing between Go and D for a quick project

2015-03-19 Thread Rory via Digitalmars-d
On Friday, 13 March 2015 at 15:03:37 UTC, bearophile wrote: Andrei Alexandrescu: That's a rather random collection - strict seems to be D without the stuff bearophile dislikes. -- Andrei I am OK with that definition. Is that your best critique to those suggestions? :-) Bye, bearophile

Re: Mental models of programs [was A few notes on choosing between Go and D for a quick project]

2015-03-19 Thread Russel Winder via Digitalmars-d
On Wed, 2015-03-18 at 13:27 +, CraigDillabaugh via Digitalmars-d wrote: […] There is quite possibly something too that, and as I imagine with more functional experience it will come easier to me. However, I still think imperative code is generally easier to reason about because

Re: A few notes on choosing between Go and D for a quick project

2015-03-19 Thread Walter Bright via Digitalmars-d
On 3/18/2015 4:41 PM, Walter Bright wrote: #include stdbool.h #include stdio.h typedef long T; bool find(T *array, size_t dim, T t) { int i; for (i = 0; i = dim; i++); { int v = array[i]; if (v == t) return true; } } Bugs: 1. i should be size_t 2. = should be 3.

Re: Enhancement: issue error on all public functions that are missing ddoc sections

2015-03-19 Thread Jacob Carlborg via Digitalmars-d
On 2015-03-18 20:43, Andrei Alexandrescu wrote: That won't pass review. -- Andrei If that's the case, how did an undocumented symbol pass review in the first place? -- /Jacob Carlborg

Re: Phobos Documentation - call to action

2015-03-19 Thread Walter Bright via Digitalmars-d
On 3/18/2015 8:17 PM, H. S. Teoh via Digitalmars-d wrote: I have pathetically little experience with most of phobos. I most certainly hold the record for amount of passion associated with the D language versus number of lines actually coded in it. That said, it can't be that hard to figure out

[Issue 14309] New: The difference between Microsoft's GUID and std.uuid.UUID

2015-03-19 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14309 Issue ID: 14309 Summary: The difference between Microsoft's GUID and std.uuid.UUID Product: D Version: D2 Hardware: x86_64 OS: Windows Status: NEW

Re: Phobos Documentation - call to action

2015-03-19 Thread Kagamin via Digitalmars-d
Two low-hanging fruits are to document bug https://issues.dlang.org/show_bug.cgi?id=2742 (phobos) and https://issues.dlang.org/show_bug.cgi?id=1983 (language) Only two lines in docs.

Re: Is it possible to call D functions from C++

2015-03-19 Thread Kagamin via Digitalmars-d
On Wednesday, 18 March 2015 at 15:54:04 UTC, krzaq wrote: Oh, right. I'm sorry, I assumed void main() means D, since it's not legit C++. C++ allows implementation-defined return type of main.

[Issue 14307] Ddoc: issue error on all functions that are missing ddoc sections

2015-03-19 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14307 Jacob Carlborg d...@me.com changed: What|Removed |Added CC||d...@me.com --- Comment #3 from

Re: A few notes on choosing between Go and D for a quick project

2015-03-19 Thread John Colvin via Digitalmars-d
On Tuesday, 17 March 2015 at 18:29:20 UTC, Almighty Bob wrote: On Tuesday, 17 March 2015 at 11:48:15 UTC, Nick Treleaven wrote: On 17/03/2015 10:31, Almighty Bob wrote: It's far more useful for csvReader to return a type I know and can use than it is to obscure the return type for the sake of

Re: refactoring issues

2015-03-19 Thread Vladimir Panteleev via Digitalmars-d-learn
On Tuesday, 17 March 2015 at 15:11:02 UTC, Ivan Kazmenko wrote: For the former problem, is there a tool which jumps out and tells you use Phobos without importing things properly, or suggests a Phobos import by the name of the stuff. I did make something simple for myself, but it doesn't work

New Russian doc in wiki.dlang.org

2015-03-19 Thread Suliman via Digitalmars-d-announce
My friend Ruslan wrote pretty big doc for D-noobs about using D. It's pretty much inspired by Ali book (thanks Ali!) but not so big. I hope that doc will help to newcomers to start programming. Any feed back are welcome! http://wiki.dlang.org/Reading_the_documentation_%28in_Russian%29 P.S.

[Issue 10664] Win64: exception handling does not work with COMDAT folding

2015-03-19 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=10664 Temtaime temta...@gmail.com changed: What|Removed |Added CC||temta...@gmail.com --- Comment

Re: Enhancement: issue error on all public functions that are missing ddoc sections

2015-03-19 Thread Gary Willoughby via Digitalmars-d
On Wednesday, 18 March 2015 at 18:48:53 UTC, Walter Bright wrote: I'm fed up with this problem. It is actively hurting us every day. https://issues.dlang.org/show_bug.cgi?id=14307 Anyone want to take this on? Shouldn't be particularly difficult. I would like this but issue warnings not

Re: Is it possible to call D functions from C++

2015-03-19 Thread Namal via Digitalmars-d
On Wednesday, 18 March 2015 at 15:52:33 UTC, Benjamin Thaut wrote: On Wednesday, 18 March 2015 at 14:50:21 UTC, Namal wrote: Can you help me show how to compile and link it together please, thank you. What platform are you on, windows, linux, osx? What c++ compiler do you use? msvc, clang,

Re: Enhancement: issue error on all public functions that are missing ddoc sections

2015-03-19 Thread Benjamin Thaut via Digitalmars-d
On Wednesday, 18 March 2015 at 18:48:53 UTC, Walter Bright wrote: I'm fed up with this problem. It is actively hurting us every day. https://issues.dlang.org/show_bug.cgi?id=14307 Anyone want to take this on? Shouldn't be particularly difficult. This is going to be a lot of fun as soon as

Re: DDT 0.11.0 released

2015-03-19 Thread Dicebot via Digitalmars-d-announce
On Wednesday, 18 March 2015 at 22:32:06 UTC, Trent Forkert wrote: On Wednesday, 18 March 2015 at 21:49:17 UTC, Bruno Medeiros wrote: Why is it insufficient? You don't have to use DUB to the exclusion of everything else. Isn't the use of the preGenerateCommands

Re: A few notes on choosing between Go and D for a quick project

2015-03-19 Thread John Colvin via Digitalmars-d
On Wednesday, 18 March 2015 at 01:52:00 UTC, Laeeth Isharc wrote: On Tuesday, 17 March 2015 at 21:00:11 UTC, bachmeier wrote: On Tuesday, 17 March 2015 at 19:00:06 UTC, jmh530 wrote: In addition, further development of the ability to call D from R or Python* or Julia (or vice-versa) would also

Re: Formal review of dtoh

2015-03-19 Thread John Colvin via Digitalmars-d
On Tuesday, 25 March 2014 at 20:38:40 UTC, Jacob Carlborg wrote: This is the formal review of Adam D. Ruppe's tool dtoh for inclusion in the tools repository [1]. Dtoh is a tool used to convert D modules to C/C++ headers. This allows to use D libraries in C/C++ code. This review might be a

[Issue 14133] [REG 2.067] struct ctor init compiles very slow and produces excessive amounts of code

2015-03-19 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14133 Martin Nowak c...@dawg.eu changed: What|Removed |Added CC||etci...@gmail.com --- Comment #3

[Issue 14301] [2.067-rc1] Private symbols of module conflicts with public from another

2015-03-19 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14301 Martin Nowak c...@dawg.eu changed: What|Removed |Added Keywords||pull --- Comment #15 from Martin

Re: DDT 0.11.0 released

2015-03-19 Thread Manu via Digitalmars-d-announce
On 20 March 2015 at 01:31, Bruno Medeiros via Digitalmars-d-announce digitalmars-d-announce@puremagic.com wrote: On 19/03/2015 11:18, Dicebot wrote: On Wednesday, 18 March 2015 at 22:32:06 UTC, Trent Forkert wrote: Arbitrary, contrived example (though not entirely unrealistic): * a C(++)

[Semi OT] The programming language wars

2015-03-19 Thread deadalnix via Digitalmars-d
I let this here. Very interesting and relevant to anyone here. https://www.youtube.com/watch?v=mDZ-QSLQIB8

[Issue 14300] [2.067-rc1] DList casting to base type is broken

2015-03-19 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14300 Martin Nowak c...@dawg.eu changed: What|Removed |Added Keywords||pull CC|

Re: A few notes on choosing between Go and D for a quick project

2015-03-19 Thread jmh530 via Digitalmars-d
On Wednesday, 18 March 2015 at 18:48:59 UTC, bachmeier wrote: On Wednesday, 18 March 2015 at 15:13:24 UTC, jmh530 wrote: You might be able to download the zip here: https://bitbucket.org/bachmeil/dmdinline/downloads and then install from a USB disk using install_local. I ended up trying

Re: DDT 0.11.0 released

2015-03-19 Thread Manu via Digitalmars-d-announce
On 20 March 2015 at 00:45, Trent Forkert via Digitalmars-d-announce digitalmars-d-announce@puremagic.com wrote: On Thursday, 19 March 2015 at 11:18:29 UTC, Dicebot wrote: I call dub from makefile rules and feel pretty comfortable about such pattern (apart from being not-so-portable compared to

[Issue 14133] [REG 2.067] struct ctor init compiles very slow and produces excessive amounts of code

2015-03-19 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14133 Martin Nowak c...@dawg.eu changed: What|Removed |Added Priority|P1 |P3 CC|

[Issue 14304] [REG2.067a] ICE with static immutable variable CTFE

2015-03-19 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14304 --- Comment #4 from github-bugzi...@puremagic.com --- Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/9a6b349c3d9a1d991d429714c00fd103048ca792 fix Issue 14304 - ICE with

Re: DDT 0.11.0 released

2015-03-19 Thread Manu via Digitalmars-d-announce
On 19 March 2015 at 07:49, Bruno Medeiros via Digitalmars-d-announce digitalmars-d-announce@puremagic.com wrote: On 17/03/2015 23:45, Manu via Digitalmars-d-announce wrote: I just checked out DDT, and I noticed it seems to use DUB... _ Why this marriage? I was really hoping it would be a lot

Re: A few notes on choosing between Go and D for a quick project

2015-03-19 Thread Walter Bright via Digitalmars-d
On 3/19/2015 9:59 AM, Ola Fosheim =?UTF-8?B?R3LDuHN0YWQi?= ola.fosheim.grostad+dl...@gmail.com wrote: On Thursday, 19 March 2015 at 00:42:51 UTC, weaselcat wrote: On Wednesday, 18 March 2015 at 12:59:17 UTC, bearophile wrote: High level constructs in D are often slower than low-level code, so

[Issue 14304] [REG2.067a] ICE with static immutable variable CTFE

2015-03-19 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14304 Kenji Hara k.hara...@gmail.com changed: What|Removed |Added Keywords||ice, pull

[Issue 14133] [REG 2.067] struct ctor init compiles very slow and produces excessive amounts of code

2015-03-19 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14133 --- Comment #2 from Martin Nowak c...@dawg.eu --- mov%eax,-0x2(%rbp) mov%eax,-0x1fffc(%rbp) mov%eax,-0x1fff8(%rbp) ... mov%ecx,-0x1f804(%rbp) xor%edx,%edx // Why edx all of a sudden? mov%edx,-0x1f800(%rbp) ...

[Issue 14301] [2.067-rc1] Private symbols of module conflicts with public from another

2015-03-19 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14301 --- Comment #14 from Martin Nowak c...@dawg.eu --- yes, those fixes will break some code. but refusing to fix 'em will leave features broken forever, as there are more and more code that rely on broken things.

[Issue 14056] std.array.assocArray with a const value

2015-03-19 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14056 Martin Nowak c...@dawg.eu changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Issue 14301] [2.067-rc1] Private symbols of module conflicts with public from another

2015-03-19 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14301 --- Comment #16 from Ketmar Dark ket...@ketmar.no-ip.org --- (In reply to Martin Nowak from comment #14) This is not what I was saying, Kenji's patch fixes 313 and 314, which is great, but it also unnecessarily changes how selective imports work.

Re: DDT 0.11.0 released

2015-03-19 Thread Manu via Digitalmars-d-announce
On 19 March 2015 at 07:12, Bruno Medeiros via Digitalmars-d-announce digitalmars-d-announce@puremagic.com wrote: On 18/03/2015 00:12, Trent Forkert wrote: Unless something has changed recently, it shouldn't require dub. Last time I checked, my CMake work[1] could still generate projects for

Re: A few notes on choosing between Go and D for a quick project

2015-03-19 Thread Walter Bright via Digitalmars-d
On 3/19/2015 10:44 AM, Joakim wrote: One underused resource seems to be all the examples bearophile has put on Rosetta Code: http://rosettacode.org/wiki/Category:D If he, Adam, or some other proficient D user were to do a weekly series breaking down each of those 733 examples one at a time-

[Issue 14285] [REG2.063] alias this to nothing is accepted

2015-03-19 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14285 --- Comment #2 from github-bugzi...@puremagic.com --- Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/dc0316f77b3c00ce1e483daffa8e28e2f5cded35 fix Issue 14285 - alias

[Issue 14285] [REG2.063] alias this to nothing is accepted

2015-03-19 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14285 github-bugzi...@puremagic.com changed: What|Removed |Added Status|NEW |RESOLVED

[Issue 14285] [REG2.063] alias this to nothing is accepted

2015-03-19 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14285 --- Comment #3 from github-bugzi...@puremagic.com --- Commit pushed to 2.067 at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/7a0669d0081001bad8d72b592fe19bc9d6a63e82 Merge pull request #4500 from

Re: A few notes on choosing between Go and D for a quick project

2015-03-19 Thread bearophile via Digitalmars-d
Andrei Alexandrescu: You may want to answer there, not here. I've also posted a response. There is this, with an attach: https://issues.dlang.org/show_bug.cgi?id=11810 Bye, bearophile

Re: New Russian doc in wiki.dlang.org

2015-03-19 Thread Walter Bright via Digitalmars-d-announce
On 3/19/2015 4:41 AM, Suliman wrote: My friend Ruslan wrote pretty big doc for D-noobs about using D. It's pretty much inspired by Ali book (thanks Ali!) but not so big. I hope that doc will help to newcomers to start programming. Any feed back are welcome!

Lazy functions, lazy arrays

2015-03-19 Thread Dennis Ritchie via Digitalmars-d-learn
Hi, Is it possible for D to create lazy functions, lazy arrays? Or in addition to the function arguments can't be lazy in D?

Re: DDT 0.11.0 released

2015-03-19 Thread Manu via Digitalmars-d-announce
On 20 March 2015 at 01:14, Bruno Medeiros via Digitalmars-d-announce digitalmars-d-announce@puremagic.com wrote: On 19/03/2015 14:45, Trent Forkert wrote: On Thursday, 19 March 2015 at 11:18:29 UTC, Dicebot wrote: Semantics analysis you can get by simply opening .d file in CDT project is

Re: Enhancement: issue error on all public functions that are missing ddoc sections

2015-03-19 Thread Walter Bright via Digitalmars-d
On 3/19/2015 2:40 AM, deadalnix wrote: And I'm sorry, but if most function require DDoc, your code probably sucks quite badly and some renaming should be considered. I've never seen any code that self-documented why.

Re: Enhancement: issue error on all public functions that are missing ddoc sections

2015-03-19 Thread Jeremy Powers via Digitalmars-d
On Thu, Mar 19, 2015 at 3:03 PM, Walter Bright via Digitalmars-d digitalmars-d@puremagic.com wrote: Accessor functions that merely return a field variable are bull anyway. I would recommend against opening up this debate. Suffice it to say that this is a well established pattern that many

Re: A few notes on choosing between Go and D for a quick project

2015-03-19 Thread w0rp via Digitalmars-d
On Thursday, 19 March 2015 at 20:43:55 UTC, Almighty Bob wrote: On Thursday, 19 March 2015 at 10:07:06 UTC, John Colvin wrote: On Tuesday, 17 March 2015 at 18:29:20 UTC, Almighty Bob wrote: On Tuesday, 17 March 2015 at 11:48:15 UTC, Nick Treleaven wrote: On 17/03/2015 10:31, Almighty Bob

Re: Terminal ANSI Colouring Library

2015-03-19 Thread Johan Engelen via Digitalmars-d-announce
On Monday, 16 March 2015 at 15:39:52 UTC, Kingsley wrote: Hi, As a learning project I've knocked up a tiny library to output ansi coloured text on linux/osx. Have a look here for an earlier attempt: http://forum.dlang.org/thread/mailman.41.1317934445.28623.digitalmar...@puremagic.com This

Re: Replace core language HexStrings with library entity

2015-03-19 Thread Nick Treleaven via Digitalmars-d
On 18/03/2015 14:45, H. S. Teoh via Digitalmars-d wrote: On Wed, Mar 18, 2015 at 07:45:54PM +1100, Daniel Murphy via Digitalmars-d wrote: Kagamin wrote in message news:pltiewdojqrmgxrwh...@forum.dlang.org... The compiler lexer can be of arbitrary complexity, because it's already written. If

Re: buffer to struct type conversion...TArrayStream?

2015-03-19 Thread ketmar via Digitalmars-d-learn
On Thu, 19 Mar 2015 10:47:05 -0700, Charles Hixson via Digitalmars-d-learn wrote: turn it 90 degrees. ;-) auto cvt = cast(Node_*)buf.ptr; n = cvt[0]; signature.asc Description: PGP signature

updated SDC-32bit again

2015-03-19 Thread Stefan Koch via Digitalmars-d-announce
My sdc32-experimental has now limited support for : * foreach on forward-ranges * inference of purity * checking the returnType of main currently it CANNOT generate 32bit code anymore ...

Re: A few notes on choosing between Go and D for a quick project

2015-03-19 Thread Andrei Alexandrescu via Digitalmars-d
On 3/19/15 10:40 AM, weaselcat wrote: On Thursday, 19 March 2015 at 16:59:36 UTC, Ola Fosheim Grøstad wrote: On Thursday, 19 March 2015 at 00:42:51 UTC, weaselcat wrote: On Wednesday, 18 March 2015 at 12:59:17 UTC, bearophile wrote: High level constructs in D are often slower than low-level

Re: Enhancement: issue error on all public functions that are missing ddoc sections

2015-03-19 Thread w0rp via Digitalmars-d
On Wednesday, 18 March 2015 at 18:48:53 UTC, Walter Bright wrote: I'm fed up with this problem. It is actively hurting us every day. https://issues.dlang.org/show_bug.cgi?id=14307 Anyone want to take this on? Shouldn't be particularly difficult. I think this is a good idea. Even the most

[Issue 14183] Updates to groupBy

2015-03-19 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14183 github-bugzi...@puremagic.com changed: What|Removed |Added Status|NEW |RESOLVED

Re: buffer to struct type conversion...TArrayStream?

2015-03-19 Thread Charles Hixson via Digitalmars-d-learn
On 03/19/2015 12:05 PM, via Digitalmars-d-learn wrote: On Thursday, 19 March 2015 at 18:42:03 UTC, Marc Schütz wrote: 3) Using std.bitmap.peek(), which also supports conversion between big- and little-endian: import std.bitmap; n.self = buf.peek!(Node.Node_, Endian.bigEndian); (The

Re: const as default for variables

2015-03-19 Thread Moritz Maxeiner via Digitalmars-d
On Saturday, 14 March 2015 at 20:15:30 UTC, Walter Bright wrote: I've often thought, as do many others here, that immutability should be the default for variables. Case (1) is what I'm talking about here. If it is made const, then there are a couple ways forward in declaring a mutable

[Issue 14183] Updates to groupBy

2015-03-19 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14183 --- Comment #3 from github-bugzi...@puremagic.com --- Commits pushed to master at https://github.com/D-Programming-Language/phobos https://github.com/D-Programming-Language/phobos/commit/c6520969eaa317d373bc288aec49e9e2ca077dc4 Fix Issue 14183 -

Re: Should this work: export extern(C) auto ...

2015-03-19 Thread Benjamin Thaut via Digitalmars-d-learn
On Thursday, 19 March 2015 at 12:58:42 UTC, Robert M. Münch wrote: On 2015-03-18 21:50:39 +, Adam D. Ruppe said: It will not work because a function with an auto return value is actually a template, and unused templates won't be put into a dll. Ok, that makes it clear. Thanks.

[Issue 14291] Druntime master no longer builds

2015-03-19 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14291 Vladimir Panteleev thecybersha...@gmail.com changed: What|Removed |Added Keywords||pull

Re: Should this work: export extern(C) auto ...

2015-03-19 Thread Robert M. Münch via Digitalmars-d-learn
On 2015-03-18 21:50:39 +, Adam D. Ruppe said: It will not work because a function with an auto return value is actually a template, and unused templates won't be put into a dll. Ok, that makes it clear. Thanks. -- Robert M. Münch http://www.saphirion.com smarter | better | faster

Re: variadic mixin - the right tool for the job?

2015-03-19 Thread Robert M. Münch via Digitalmars-d-learn
On 2015-03-18 15:27:03 +, Daniel Kozák via Digitalmars-d-learn said: You probably does not need mixins: void log(string file = __FILE__, size_t line = __LINE__, T...) (T variadic_arg) { some_fun(variadic_arg[0], file, line, variadic_arg[1 .. $]); } Hi, ha, forgot about default

Re: Is it possible to call D functions from C++

2015-03-19 Thread Benjamin Thaut via Digitalmars-d
On Thursday, 19 March 2015 at 11:47:37 UTC, Namal wrote: On Wednesday, 18 March 2015 at 15:52:33 UTC, Benjamin Thaut wrote: On Wednesday, 18 March 2015 at 14:50:21 UTC, Namal wrote: Can you help me show how to compile and link it together please, thank you. What platform are you on,

[Issue 14309] The difference between Microsoft's GUID and std.uuid.UUID

2015-03-19 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14309 --- Comment #1 from Sobirari Muhomori dfj1es...@sneakemail.com --- UUID is big endian, GUID is little endian, hence mismatch. --

buffer to struct type conversion...TArrayStream?

2015-03-19 Thread Charles Hixson via Digitalmars-d-learn
I've read a chunk of data into a buffer and want to convert it into a struct. The reading routine is in a class that doesn't know about the struct, but the size should be exactly the same. (I.e., I want to use the converse procedure to write it.) Is there a better way to do this than using

Re: Enhancement: issue error on all public functions that are missing ddoc sections

2015-03-19 Thread Charles via Digitalmars-d
On Thursday, 19 March 2015 at 11:27:20 UTC, Gary Willoughby wrote: I would like this but issue warnings not errors. I like every function to be documented. Also don't make the Example mandatory because people tend to use unittest blocks as the examples. Why not just make unittests mandatory,

Re: A few notes on choosing between Go and D for a quick project

2015-03-19 Thread via Digitalmars-d
On Thursday, 19 March 2015 at 00:42:51 UTC, weaselcat wrote: On Wednesday, 18 March 2015 at 12:59:17 UTC, bearophile wrote: High level constructs in D are often slower than low-level code, so in some cases you don't want to use them. I actually found that LDC does an _amazing_ job of

Re: Digger 1.1

2015-03-19 Thread Vladimir Panteleev via Digitalmars-d-announce
On Thursday, 19 March 2015 at 15:40:19 UTC, Robert M. Münch wrote: On 2015-03-18 12:14:01 +, Vladimir Panteleev said: I've pushed support for DMD bootstrapping, so if you need to build master now, build latest Digger from source. I'll make a binary release after 2.067 is out. I just

Re: A few notes on choosing between Go and D for a quick project

2015-03-19 Thread weaselcat via Digitalmars-d
On Thursday, 19 March 2015 at 16:59:36 UTC, Ola Fosheim Grøstad wrote: On Thursday, 19 March 2015 at 00:42:51 UTC, weaselcat wrote: On Wednesday, 18 March 2015 at 12:59:17 UTC, bearophile wrote: High level constructs in D are often slower than low-level code, so in some cases you don't want to

  1   2   >