Re: auto return for some recursive functions in C++11

2015-01-14 Thread ketmar via Digitalmars-d
On Thu, 15 Jan 2015 00:05:30 + Xinok via Digitalmars-d digitalmars-d@puremagic.com wrote: Well, the error the compiler prints is: Error: forward reference to inferred return type of function call 'correct' I played with it a bit and it seems to deduce a common type from all the

Re: auto return for some recursive functions in C++11

2015-01-14 Thread ketmar via Digitalmars-d
On Thu, 15 Jan 2015 00:24:07 + via Digitalmars-d digitalmars-d@puremagic.com wrote: On Thursday, 15 January 2015 at 00:13:38 UTC, MattCoder wrote: So could you please tell me a good use case to for using return type deduction? Templates. and returning voldemort types. signature.asc

Re: Is anyone working on a D source code formatting tool?

2015-01-16 Thread ketmar via Digitalmars-d
On Fri, 16 Jan 2015 02:05:09 + deadalnix via Digitalmars-d digitalmars-d@puremagic.com wrote: On Tuesday, 13 January 2015 at 12:43:05 UTC, ketmar via Digitalmars-d wrote: On Tue, 13 Jan 2015 12:37:22 + Bruno Medeiros via Digitalmars-d digitalmars-d@puremagic.com wrote: On 10

Re: Why exceptions for error handling is so important

2015-01-16 Thread ketmar via Digitalmars-d
On Fri, 16 Jan 2015 01:01:26 + via Digitalmars-d digitalmars-d@puremagic.com wrote: On Friday, 16 January 2015 at 00:48:57 UTC, deadalnix wrote: On Thursday, 15 January 2015 at 21:29:28 UTC, Tobias Müller wrote: In a well-designed interface, every function specifies all the errors

Re: 10 Tips for Better Pull Requests

2015-01-16 Thread ketmar via Digitalmars-d
On Fri, 16 Jan 2015 08:10:50 -0800 Andrei Alexandrescu via Digitalmars-d digitalmars-d@puremagic.com wrote: On 1/16/15 7:50 AM, H. S. Teoh via Digitalmars-d wrote: On Thu, Jan 15, 2015 at 08:20:32PM -0800, Walter Bright via Digitalmars-d wrote:

Re: 10 Tips for Better Pull Requests

2015-01-16 Thread ketmar via Digitalmars-d
On Fri, 16 Jan 2015 17:16:38 + Tobias Pankrath via Digitalmars-d digitalmars-d@puremagic.com wrote: On Friday, 16 January 2015 at 16:22:13 UTC, ketmar via Digitalmars-d wrote: On Fri, 16 Jan 2015 08:10:50 -0800 Andrei Alexandrescu via Digitalmars-d digitalmars-d@puremagic.com

Re: 10 Tips for Better Pull Requests

2015-01-16 Thread ketmar via Digitalmars-d
On Fri, 16 Jan 2015 11:23:02 -0800 Walter Bright via Digitalmars-d digitalmars-d@puremagic.com wrote: On 1/16/2015 9:49 AM, Andrei Alexandrescu wrote: I'm thinking of something like: if there's $(legitimate) request for changes but the author is dormant for more than $(X) days, then

Re: [unittest] constness

2015-01-16 Thread ketmar via Digitalmars-d
On Sat, 17 Jan 2015 00:38:08 + Luc Bourhis via Digitalmars-d digitalmars-d@puremagic.com wrote: Testing constness implementation is easy: const Foo a; a.non_const_method(); // compilation fails but how would I catch that in a unittest? i don't think that you can do it with one

dlang.org page is missing

2015-01-16 Thread ketmar via Digitalmars-d
Hello. there is a link in side menu: downloadtools-debugger. it leads to http://dlang.org/debugger.html which is missing. signature.asc Description: PGP signature

Re: post qualifier and template constraint limitation, is there a reason ?

2015-01-17 Thread ketmar via Digitalmars-d
On Sat, 17 Jan 2015 08:33:49 + deadalnix via Digitalmars-d digitalmars-d@puremagic.com wrote: This is accepted : auto fun(T)(T T) inout if(...) { ... } This is not : auto fun(T)(T T) if(...) inout { ... } Is there a reason ? the first is easier to parse, and i it's looking better.

Re: post qualifier and template constraint limitation, is there a reason ?

2015-01-17 Thread ketmar via Digitalmars-d
On Sat, 17 Jan 2015 16:55:31 + deadalnix via Digitalmars-d digitalmars-d@puremagic.com wrote: On Saturday, 17 January 2015 at 16:02:16 UTC, ketmar via Digitalmars-d wrote: On Sat, 17 Jan 2015 08:33:49 + deadalnix via Digitalmars-d digitalmars-d@puremagic.com wrote

Re: ...test my shiny new nntp clinet...

2015-01-20 Thread ketmar via Digitalmars-d
On Tue, 20 Jan 2015 09:22:52 -0500 Steven Schveighoffer via Digitalmars-d digitalmars-d@puremagic.com wrote: On 1/20/15 8:54 AM, ketmar via Digitalmars-d wrote: Hello. is there any officially dead newsgroups on dlang.org that nobody sees, yet they still working and can be used to test my

Re: Like Go/Rust, why not to have func keyword before function declaration

2015-01-20 Thread ketmar via Digitalmars-d
On Mon, 19 Jan 2015 22:35:16 -0300 Ary Borenszweig via Digitalmars-d digitalmars-d@puremagic.com wrote: On 1/19/15 9:17 PM, Walter Bright wrote: On 1/19/2015 2:49 PM, Ary Borenszweig wrote: So... how do you search for a function definition in D without an IDE? I do a text search for the

Re: Like Go/Rust, why not to have func keyword before function declaration

2015-01-20 Thread ketmar via Digitalmars-d
On Tue, 20 Jan 2015 13:49:47 + MattCoder via Digitalmars-d digitalmars-d@puremagic.com wrote: On Tuesday, 20 January 2015 at 13:47:11 UTC, ketmar via Digitalmars-d wrote: void function foo () { ... } foo(); do you see the subtle difference? yes, that tiny whitespace

...test my shiny new nntp clinet...

2015-01-20 Thread ketmar via Digitalmars-d
Hello. is there any officially dead newsgroups on dlang.org that nobody sees, yet they still working and can be used to test my simple nntp code? yes, i know that i can setup local nntp server and play with it, but i want to test it on dlang groups to see if it's really working, and i can't up

Re: forcing @nogc on class destructors

2015-01-20 Thread ketmar via Digitalmars-d
On Tue, 20 Jan 2015 18:17:56 + Meta via Digitalmars-d digitalmars-d@puremagic.com wrote: On Tuesday, 20 January 2015 at 18:12:27 UTC, ketmar via Digitalmars-d wrote: Hello. as there is no possibility to doing GC allocations in class destructors, wouldn't it be nice to just force

forcing @nogc on class destructors

2015-01-20 Thread ketmar via Digitalmars-d
Hello. as there is no possibility to doing GC allocations in class destructors, wouldn't it be nice to just force @nogc attribute on such dtors? i know, i know, this will break alot of code. i'm pretty sure that this will break alot of INVALID code, which better be broken at compile-time anyway.

Re: A new and exciting way in which DMD fails to build for me

2015-01-20 Thread ketmar via Digitalmars-d
On Tue, 20 Jan 2015 20:14:42 + Meta via Digitalmars-d digitalmars-d@puremagic.com wrote: I'm trying to build to build DMD and I've encountered a very strange problem. When I run `make -fwin32.mak`, there are errors when it tries to compile id.c: id.c(298) : Error: 'idPool' is not a

Re: Emacs D-Mode [was Like Go/Rust, why not to have func keyword before function declaration]

2015-01-21 Thread ketmar via Digitalmars-d
On Wed, 21 Jan 2015 10:39:14 -0800 Walter Bright via Digitalmars-d digitalmars-d@puremagic.com wrote: Why even ship such a product you have no intention of fixing bugs for? It's a net negative for one's image. ah, that's a different question! i don't know why they still shipping it instead of

Re: D on Slashdot

2015-01-21 Thread ketmar via Digitalmars-d
On Wed, 21 Jan 2015 08:56:53 + Kagamin via Digitalmars-d digitalmars-d@puremagic.com wrote: On Wednesday, 21 January 2015 at 08:19:39 UTC, ketmar via Digitalmars-d wrote: i even knew how to quit vi ctrl-c? nope! it beeps. ;-) Duh! Don't console programs know, what ctrl-c

Re: D on Slashdot

2015-01-21 Thread ketmar via Digitalmars-d
On Wed, 21 Jan 2015 10:16:47 + Paulo Pinto via Digitalmars-d digitalmars-d@puremagic.com wrote: On Wednesday, 21 January 2015 at 01:52:51 UTC, ketmar via Digitalmars-d wrote: On Wed, 21 Jan 2015 01:44:07 + Vlad Levenfeld via Digitalmars-d digitalmars-d@puremagic.com wrote

Re: D on Slashdot

2015-01-21 Thread ketmar via Digitalmars-d
On Wed, 21 Jan 2015 13:36:46 + MattCoder via Digitalmars-d digitalmars-d@puremagic.com wrote: On Wednesday, 21 January 2015 at 13:19:00 UTC, Adam D. Ruppe wrote: It is a lot easier to just run wine dmd and distribute the finished exe than it is to copy all the development files to

Re: Emacs D-Mode [was Like Go/Rust, why not to have func keyword before function declaration]

2015-01-21 Thread ketmar via Digitalmars-d
On Wed, 21 Jan 2015 00:40:48 -0800 Walter Bright via Digitalmars-d digitalmars-d@puremagic.com wrote: I find this utterly baffling. Why make it so difficult to report a bug? Microsoft has always been like this, the only way I've ever been able to submit a bug report was if I had a friend

Re: forcing @nogc on class destructors

2015-01-20 Thread ketmar via Digitalmars-d
On Wed, 21 Jan 2015 00:29:21 + Kapps via Digitalmars-d digitalmars-d@puremagic.com wrote: On Tuesday, 20 January 2015 at 18:12:27 UTC, ketmar via Digitalmars-d wrote: let's see how this proposal will be rejected. will there be some sane reasons, or only the good old song about

Re: forcing @nogc on class destructors

2015-01-20 Thread ketmar via Digitalmars-d
On Tue, 20 Jan 2015 21:34:54 + Freddy via Digitalmars-d digitalmars-d@puremagic.com wrote: On Tuesday, 20 January 2015 at 18:12:27 UTC, ketmar via Digitalmars-d wrote: Hello. as there is no possibility to doing GC allocations in class destructors, wouldn't it be nice to just force

Re: forcing @nogc on class destructors

2015-01-20 Thread ketmar via Digitalmars-d
On Tue, 20 Jan 2015 21:41:15 + Vladimir Panteleev via Digitalmars-d digitalmars-d@puremagic.com wrote: Not an error, Make it a warning. alas, attribute violations are errors. turning that into warning means that compiler needs new flags and new code to determine if that is hard

Re: A new and exciting way in which DMD fails to build for me

2015-01-20 Thread ketmar via Digitalmars-d
On Tue, 20 Jan 2015 22:30:16 + Meta via Digitalmars-d digitalmars-d@puremagic.com wrote: On Tuesday, 20 January 2015 at 22:25:18 UTC, ketmar via Digitalmars-d wrote: if you'll make a PR, it would be good to change other invocations too: optabgen and impcnvgen. I have; the PR

Re: forcing @nogc on class destructors

2015-01-20 Thread ketmar via Digitalmars-d
On Tue, 20 Jan 2015 15:51:17 -0500 Steven Schveighoffer via Digitalmars-d digitalmars-d@puremagic.com wrote: p.s. another point is that all mechanics compiler needs for doing such checks is already there, so it's not a huge change to compiler codebase. it's not something that requires adding a

Re: forcing @nogc on class destructors

2015-01-20 Thread ketmar via Digitalmars-d
On Tue, 20 Jan 2015 21:37:54 + via Digitalmars-d digitalmars-d@puremagic.com wrote: On Tuesday, 20 January 2015 at 21:29:40 UTC, Steven Schveighoffer wrote: How's that? The current runtime aborts on memory allocation inside the GC collection routine, it's not a memory safety issue.

Re: forcing @nogc on class destructors

2015-01-20 Thread ketmar via Digitalmars-d
On Tue, 20 Jan 2015 15:51:17 -0500 Steven Schveighoffer via Digitalmars-d digitalmars-d@puremagic.com wrote: On 1/20/15 3:39 PM, ketmar via Digitalmars-d wrote: and all that mess can be avoided just by enforcing the one simple rule, which compiler is perfectly able to check. I think

Re: A new and exciting way in which DMD fails to build for me

2015-01-20 Thread ketmar via Digitalmars-d
On Tue, 20 Jan 2015 21:11:29 + Meta via Digitalmars-d digitalmars-d@puremagic.com wrote: On Tuesday, 20 January 2015 at 20:50:49 UTC, ketmar via Digitalmars-d wrote: this may be timestamp-related somehow, 'cause make looks only to timestamps to determine which file(s) should be rebuild

Re: forcing @nogc on class destructors

2015-01-20 Thread ketmar via Digitalmars-d
On Tue, 20 Jan 2015 16:30:14 -0500 Steven Schveighoffer via Digitalmars-d digitalmars-d@puremagic.com wrote: On 1/20/15 4:06 PM, ketmar via Digitalmars-d wrote: On Tue, 20 Jan 2015 15:51:17 -0500 Steven Schveighoffer via Digitalmars-d digitalmars-d@puremagic.com wrote: p.s. another

Re: Splitting std.algorithm

2015-01-20 Thread ketmar via Digitalmars-d
On Tue, 20 Jan 2015 15:40:57 -0800 H. S. Teoh via Digitalmars-d digitalmars-d@puremagic.com wrote: So, what do you think? Should we merge this, or should we not? please, please, please! please, whoever can do it: just merge it right away! you can revert chat changes later, but if it will go into

Re: post qualifier and template constraint limitation, is there a reason ?

2015-01-17 Thread ketmar via Digitalmars-d
On Sat, 17 Jan 2015 17:34:21 + deadalnix via Digitalmars-d digitalmars-d@puremagic.com wrote: On Saturday, 17 January 2015 at 17:08:12 UTC, ketmar via Digitalmars-d wrote: sure i have. i made alot of patches to the parser, so i know how it is written. to make this work parser need

Re: Please help me with improving dlang.org

2015-01-17 Thread ketmar via Digitalmars-d
On Sat, 17 Jan 2015 18:18:17 -0800 Andrei Alexandrescu via Digitalmars-d digitalmars-d@puremagic.com wrote: I took the better part of today working on this: https://github.com/D-Programming-Language/dlang.org/pull/780. See demo at http://erdani.com/d/. What do you all think? Is it an

Re: Eliminate comparison.html?

2015-01-17 Thread ketmar via Digitalmars-d
On Sun, 18 Jan 2015 01:05:25 + MattCoder via Digitalmars-d digitalmars-d@puremagic.com wrote: On Saturday, 17 January 2015 at 18:04:24 UTC, Andrei Alexandrescu wrote: I think http://dlang.org/overview.html is long in the tooth and needs a rewrite or replacement. It's not appropriate

Re: Idea: featuring forum content on dlang.org?

2015-01-19 Thread ketmar via Digitalmars-d
On Sun, 18 Jan 2015 18:34:36 -0800 Andrei Alexandrescu via Digitalmars-d digitalmars-d@puremagic.com wrote: With all this discussion on more dynamic content on dlang.org, I sat down (figuratively; I've been on a hike today) and thought - what is dynamic about D? So it hit me like a

Re: DMD, Wine and MinGW

2015-01-19 Thread ketmar via Digitalmars-d
for those who may be interested, i put my dirty hack there: https://issues.dlang.org/show_bug.cgi?id=14008 feel free to not use it.

Re: Like Go/Rust, why not to have func keyword before function declaration

2015-01-19 Thread ketmar via Digitalmars-d
On Mon, 19 Jan 2015 20:51:02 + Alexey T. via Digitalmars-d digitalmars-d@puremagic.com wrote: Will be much easier to read Source, if func declarataion begins with keyword. def of func. e.g. func myName(params.): typeOfResult; or func myName(params...) - typeOfResult; easier to

Re: no size yet for forward reference for nested structures

2015-01-14 Thread ketmar via Digitalmars-d
On Wed, 14 Jan 2015 07:09:44 -0800 Ali Çehreli via Digitalmars-d digitalmars-d@puremagic.com wrote: Reduced: import std.container; class Node { SList!Node children; } void main() {} Error: class deneme.Node no size yet for forward reference I wonder why an SList of a

Re: D on Slashdot

2015-01-22 Thread ketmar via Digitalmars-d
On Thu, 22 Jan 2015 08:29:57 + Kagamin via Digitalmars-d digitalmars-d@puremagic.com wrote: On Wednesday, 21 January 2015 at 16:34:26 UTC, ketmar via Digitalmars-d wrote: i even knew how to quit vi ctrl-c? nope! it beeps. ;-) Duh! Don't console programs know, what ctrl-c

Re: 404 on dlang.org

2015-01-22 Thread ketmar via Digitalmars-d
On Thu, 22 Jan 2015 08:12:33 -0800 H. S. Teoh via Digitalmars-d digitalmars-d@puremagic.com wrote: On Thu, Jan 22, 2015 at 04:08:29PM +, Vladimir Panteleev via Digitalmars-d wrote: On Thursday, 22 January 2015 at 14:00:54 UTC, CraigDillabaugh wrote: [...] So what you are saying is

Re: D on Slashdot

2015-01-20 Thread ketmar via Digitalmars-d
On Wed, 21 Jan 2015 00:51:26 + bearophile via Digitalmars-d digitalmars-d@puremagic.com wrote: Kiith-Sa: http://developers.slashdot.org/story/15/01/20/2026221/is-d-an-underrated-programming-language?utm_source=rss1.0mainlinkanonutm_medium=feed One interesting comment:

Re: D on Slashdot

2015-01-20 Thread ketmar via Digitalmars-d
On Wed, 21 Jan 2015 01:44:07 + Vlad Levenfeld via Digitalmars-d digitalmars-d@puremagic.com wrote: i can see how this thread slowly turning into how i was forced to live with windows and how painful it was thread. ;-) signature.asc Description: PGP signature

Re: forcing @nogc on class destructors

2015-01-20 Thread ketmar via Digitalmars-d
On Tue, 20 Jan 2015 20:51:34 -0500 Steven Schveighoffer via Digitalmars-d digitalmars-d@puremagic.com wrote: You can always put @nogc on the dtor if you want. seems that you completely missing my point. (sigh) Nope, not missing it. The mechanics are there. You just have to annotate. that

Re: D on Slashdot

2015-01-20 Thread ketmar via Digitalmars-d
On Wed, 21 Jan 2015 01:07:03 + Adam D. Ruppe via Digitalmars-d digitalmars-d@puremagic.com wrote: On Wednesday, 21 January 2015 at 01:04:11 UTC, ketmar via Digitalmars-d wrote: two days making dmd.exe work with Wine to write the simple utility which i can write in two hours using

Re: D on Slashdot

2015-01-20 Thread ketmar via Digitalmars-d
On Tue, 20 Jan 2015 18:06:59 -0800 H. S. Teoh via Digitalmars-d digitalmars-d@puremagic.com wrote: On Wed, Jan 21, 2015 at 01:56:32AM +, Vlad Levenfeld via Digitalmars-d wrote: On Wednesday, 21 January 2015 at 01:52:51 UTC, ketmar via Digitalmars-d wrote: On Wed, 21 Jan 2015 01:44:07

Re: forcing @nogc on class destructors

2015-01-20 Thread ketmar via Digitalmars-d
On Tue, 20 Jan 2015 22:02:53 -0500 Steven Schveighoffer via Digitalmars-d digitalmars-d@puremagic.com wrote: You may be able to, but I don't see the point. writeln can work perfectly fine for the most part inside dtors. But it can't be marked nogc. now, that's really nice. it's wrong, it can

Re: A new and exciting way in which DMD fails to build for me

2015-01-20 Thread ketmar via Digitalmars-d
On Tue, 20 Jan 2015 22:15:43 + Meta via Digitalmars-d digitalmars-d@puremagic.com wrote: On Tuesday, 20 January 2015 at 22:03:27 UTC, Meta wrote: On Tuesday, 20 January 2015 at 21:57:56 UTC, Meta wrote: The only things in my path when I run make are: C:\D\dmd2\windows\bin

Re: D on Slashdot

2015-01-21 Thread ketmar via Digitalmars-d
On Wed, 21 Jan 2015 07:56:47 + Kagamin via Digitalmars-d digitalmars-d@puremagic.com wrote: On Wednesday, 21 January 2015 at 02:23:03 UTC, ketmar via Digitalmars-d wrote: i even knew how to quit vi ctrl-c? nope! it beeps. ;-) BTW, is there a way to make the shell autocomplete file

Re: D on Slashdot

2015-01-20 Thread ketmar via Digitalmars-d
On Tue, 20 Jan 2015 22:43:04 -0800 H. S. Teoh via Digitalmars-d digitalmars-d@puremagic.com wrote: I almost nuked my entire system with a mistyped `rm -rf` command, as I'm sure every *nix person has at least once in his life my expirience was simply doing `chmod -R 600 /` as root. lucky me.

Re: D on Slashdot

2015-01-20 Thread ketmar via Digitalmars-d
On Wed, 21 Jan 2015 06:08:49 + Israel via Digitalmars-d digitalmars-d@puremagic.com wrote: On Wednesday, 21 January 2015 at 01:07:04 UTC, Adam D. Ruppe wrote: On Wednesday, 21 January 2015 at 01:04:11 UTC, ketmar via Digitalmars-d wrote: two days making dmd.exe work with Wine

Re: A new and exciting way in which DMD fails to build for me

2015-01-20 Thread ketmar via Digitalmars-d
On Tue, 20 Jan 2015 20:22:59 + Meta via Digitalmars-d digitalmars-d@puremagic.com wrote: what is that id.c at all? i can't find such file in dmd git repo... It's generated by idgen.exe, which is compiled from idgen.c. I'm not sure why, exactly. ah, sorry, i should read your post

Re: Like Go/Rust, why not to have func keyword before function declaration

2015-01-20 Thread ketmar via Digitalmars-d
On Tue, 20 Jan 2015 20:30:00 + Jonathan Marler via Digitalmars-d digitalmars-d@puremagic.com wrote: On Tuesday, 20 January 2015 at 03:28:29 UTC, Walter Bright wrote: On 1/19/2015 7:20 PM, Walter Bright wrote: Yes. Search Again is a single button press. It really has never occurred to

Re: forcing @nogc on class destructors

2015-01-20 Thread ketmar via Digitalmars-d
On Tue, 20 Jan 2015 20:25:13 + Meta via Digitalmars-d digitalmars-d@puremagic.com wrote: On Tuesday, 20 January 2015 at 18:25:42 UTC, ketmar via Digitalmars-d wrote: how likely this to be changed? is there *any* chances of that in 2015? 2016? and why we can't just remove

Re: A new and exciting way in which DMD fails to build for me

2015-01-20 Thread ketmar via Digitalmars-d
On Tue, 20 Jan 2015 20:22:59 + Meta via Digitalmars-d digitalmars-d@puremagic.com wrote: ah, and id.obj, of course. ;-) signature.asc Description: PGP signature

Re: A new and exciting way in which DMD fails to build for me

2015-01-20 Thread ketmar via Digitalmars-d
On Tue, 20 Jan 2015 20:37:03 + Meta via Digitalmars-d digitalmars-d@puremagic.com wrote: On Tuesday, 20 January 2015 at 20:33:58 UTC, ketmar via Digitalmars-d wrote: On Tue, 20 Jan 2015 20:22:59 + Meta via Digitalmars-d digitalmars-d@puremagic.com wrote: what is that id.c

Re: DMD, Wine and MinGW

2015-01-18 Thread ketmar via Digitalmars-d
and i found what is wrong here. ah, not exactly *what* is wrong, but *where* it goes mad: it's root/async.c. i don't know what Wine did wrong there, but it keep crashing in that threaded reader. and *sometimes* it works. i turned that messy thingy off, and voila! dmd.exe is not crashing under

DMD, Wine and MinGW

2015-01-18 Thread ketmar via Digitalmars-d
Hello. it seems that current dmd.exe segfaults in Wine (at least on my GNU/Linux x86 box, with freshly created WINEPREFIX), which forces me to switch between windoze VM and working environment if i want to write some win32 program (and i have to :-( ). so i have a bunch of questions: 1. does

Re: DMD, Wine and MinGW

2015-01-18 Thread ketmar via Digitalmars-d
On Sun, 18 Jan 2015 17:32:28 + Joakim via Digitalmars-d digitalmars-d@puremagic.com wrote: I used dmd under Wine years ago and didn't have a problem building a small utility, no recent use though. the strange thing is that is sometimes works... once in a while it is able to build hello.d,

Re: while(...){ ... }else ...

2015-01-18 Thread ketmar via Digitalmars-d
On Sun, 18 Jan 2015 22:56:23 + Jens Bauer via Digitalmars-d digitalmars-d@puremagic.com wrote: On Sunday, 18 January 2015 at 18:16:47 UTC, Marc Schütz wrote: Unfortunately, this would break existing code: That is absolutely correct. Good catch. I did not think of that particular case.

Re: while(...){ ... }else ...

2015-01-18 Thread ketmar via Digitalmars-d
On Sun, 18 Jan 2015 23:16:11 + Jens Bauer via Digitalmars-d digitalmars-d@puremagic.com wrote: I'd like to give an example on a different use of the same feature: while(length--) { *d++ = *s++; } if(length == -1) /* the programmer will need to know the value of length here.

Re: while(...){ ... }else ...

2015-01-18 Thread ketmar via Digitalmars-d
On Sun, 18 Jan 2015 23:20:43 + Jens Bauer via Digitalmars-d digitalmars-d@puremagic.com wrote: -A rejection will not stop me from making another proposal, though - in fact, I do have one more. ;) sure, you're welcome! this one is not so good, but another one may be brilliant. and even if

Re: Please help me with improving dlang.org

2015-01-18 Thread ketmar via Digitalmars-d
On Sun, 18 Jan 2015 23:47:30 + MattCoder via Digitalmars-d digitalmars-d@puremagic.com wrote: On Sunday, 18 January 2015 at 21:27:25 UTC, NVolcz wrote: Googles pagespeed also gives some nice guidelines: https://developers.google.com/speed/pagespeed/insights/?url=dlang.org Nice and for

Re: Speeding up compilation by using jemalloc

2015-01-22 Thread ketmar via Digitalmars-d
On Thu, 22 Jan 2015 19:39:24 +, Vladimir Panteleev wrote: On Thursday, 22 January 2015 at 19:37:11 UTC, weaselcat wrote: Might be of use to someone, but I was looking for ways to speed up dmd's albeit already fast compilation times. Just by dropping in jemalloc in place of glibc's malloc

Re: Proposal : aggregated dlang git repository

2015-02-11 Thread ketmar via Digitalmars-d
On Wed, 11 Feb 2015 14:32:59 +, weaselcat wrote: I see it as quite a shame that people repeatedly say they actively avoid using classes in D in favor of structs where possible, until forced to use classes. it has nothing with GC per se, i just don't like the concept. not epsecially D

Re: Inconsistent coding style in code examples

2015-02-11 Thread ketmar via Digitalmars-d
On Wed, 11 Feb 2015 10:51:19 -0800, H. S. Teoh via Digitalmars-d wrote: and (2) I don't have a Windows machine to test changes to win32.mak, I think you can run DM make under Wine. Interesting. yep, the whole dmd can be built under wine, using tools from dmc and dmc itself. everything works

Re: Inconsistent coding style in code examples

2015-02-11 Thread ketmar via Digitalmars-d
On Wed, 11 Feb 2015 14:21:41 -0800, Walter Bright wrote: On 2/11/2015 1:37 PM, ketmar wrote: yep, the whole dmd can be built under wine, using tools from dmc and dmc itself. everything works like a charm (except dmd.exe itself, which is broken ;-). Bugzilla issue? sure i did, along with

Re: Inconsistent coding style in code examples

2015-02-11 Thread ketmar via Digitalmars-d
On Wed, 11 Feb 2015 15:21:59 -0800, Walter Bright wrote: On 2/11/2015 2:34 PM, ketmar wrote: On Wed, 11 Feb 2015 14:21:41 -0800, Walter Bright wrote: On 2/11/2015 1:37 PM, ketmar wrote: yep, the whole dmd can be built under wine, using tools from dmc and dmc itself. everything works like a

Re: Testing package proposed for Phobos

2015-02-10 Thread ketmar via Digitalmars-d
On Tue, 10 Feb 2015 17:46:20 +, Brad Anderson wrote: On Monday, 9 February 2015 at 14:47:09 UTC, ketmar wrote: On Mon, 09 Feb 2015 13:48:55 +, CraigDillabaugh wrote: Everybody talks about it, but nobody does anything about it! -- Mark Twain Was the Mark Twain quote intentional?

Re: Botan Crypto and TLS for D

2015-02-17 Thread ketmar via Digitalmars-d
On Tue, 17 Feb 2015 16:00:45 -0500, Etienne wrote: I'd like to announce the first release of Botan, which implements all features of v1.11.10 in the C++ library. I gave special attention to properly translating it to correct D code. It only runs with DMD master for now, only tested on

Re: MAP_ANON

2015-02-16 Thread ketmar via Digitalmars-d
On Sun, 15 Feb 2015 18:19:49 -0800, Andrei Alexandrescu wrote: Folks, we want to get 2.067 out the door on March 1. That's two short weeks from now. We really need all hands on deck to make this a successful release. we can't. this issue, for example, was known for monthes (or, maybe,

Re: contiguous ranges

2015-02-16 Thread ketmar via Digitalmars-d
On Mon, 16 Feb 2015 12:16:50 +, rupert wrote: If you think you could do a better job than the C++ committee you should submit a proposal. https://isocpp.org/std/submit-a-proposal why he *should* to that? he *may* submit it. when someone sees people doing shit, he is not obliged to

Re: One more issue

2015-02-16 Thread ketmar via Digitalmars-d
On Mon, 16 Feb 2015 09:36:57 -0800, Andrei Alexandrescu wrote: * There is no added value to D users in splitting algorithm.d into a package. * Even the value to contributors is debatable and definitely low impact. * The documentation is in shambles. All told we're looking at a net

Re: Botan Crypto and TLS for D

2015-02-18 Thread ketmar via Digitalmars-d
On Tue, 17 Feb 2015 20:14:50 -0500, Etienne Cimon wrote: So many nice projects :D We have such sights to show you! signature.asc Description: PGP signature

Re: Botan Crypto and TLS for D

2015-02-18 Thread ketmar via Digitalmars-d
On Wed, 18 Feb 2015 06:35:08 +, Joakim wrote: accompanied by benchmarks of the C++ and D code it's better to keep silence. dmd was never very good in optimising code. ;-) signature.asc Description: PGP signature

Re: Botan Crypto and TLS for D

2015-02-18 Thread ketmar via Digitalmars-d
On Tue, 17 Feb 2015 20:14:50 -0500, Etienne Cimon wrote: I'll be working on HTTP/2 with websocket-style full duplex communications once this is done, and then a CMS that has a windows explorer-like desktop front-end with a redis filesystem and distributed node management. So many nice

Re: Writing game engine in C++, considering switching to D

2015-02-18 Thread ketmar via Digitalmars-d
On Wed, 18 Feb 2015 20:29:33 +, Will Cassella wrote: Anyway, if anyone here can give me advice on whether I should transition or not, I'd appreciate it. do you really expecting the answer no, stay with C++ in newsgroup that is dedicated to D language? ;-) as for some of your answer...

Re: Writing game engine in C++, considering switching to D

2015-02-18 Thread ketmar via Digitalmars-d
On Wed, 18 Feb 2015 21:24:42 +, Iain Buclaw via Digitalmars-d wrote: On 18 February 2015 at 20:48, ketmar via Digitalmars-d digitalmars-d@puremagic.com wrote: GDC compiler is able to produce ARM code (and maybe LDC too, i don't know), GDC and LDC are able to produce any code. It's

Re: Inconsistent coding style in code examples

2015-02-12 Thread ketmar via Digitalmars-d
On Thu, 12 Feb 2015 12:16:38 -0800, Walter Bright wrote: Why you did it doesn't matter. What matters is you did it and contributed it. Also, just because it wasn't reported before doesn't mean it wasn't happening to people. The vast majority will see a bug, and just dump the compiler and move

Re: Inconsistent coding style in code examples

2015-02-12 Thread ketmar via Digitalmars-d
On Thu, 12 Feb 2015 21:12:26 +, Vladimir Panteleev wrote: On Thursday, 12 February 2015 at 20:16:40 UTC, Walter Bright wrote: Me, for example, I very very rarely bother to report a bug in a product I use. The reason isn't because I am lazy (although I am). It's because companies make it

Re: Inconsistent coding style in code examples

2015-02-12 Thread ketmar via Digitalmars-d
On Wed, 11 Feb 2015 16:09:59 -0800, Walter Bright wrote: On 2/11/2015 3:34 PM, ketmar wrote: no, i didn't found anything else. with this patch dmd with wine works perfectly -- no crashes since then. Thanks again for finding the problem and posting a fix. now i feel ashamed, 'cause i did

Re: Somewhat off-topic: Nemiver

2015-02-13 Thread ketmar via Digitalmars-d
On Thu, 12 Feb 2015 23:18:28 +, Brian Schott wrote: I've been looking for a graphical front-end for GDB that's not terrible, and I've found that Nemiver works pretty well. It's worth trying out if you're on Linux. https://wiki.gnome.org/Apps/Nemiver/Features if only they drop that

Re: accept @pure @nothrow @return attributes

2015-01-27 Thread ketmar via Digitalmars-d
On Tue, 27 Jan 2015 08:47:43 +, Paolo Invernizzi wrote: On Tuesday, 27 January 2015 at 08:07:11 UTC, ketmar wrote: On Tue, 27 Jan 2015 01:32:21 +, Mike wrote: i started the process of migration of all our work projects (i'm a head of software company with ~100 employees, if anybody

Re: accept @pure @nothrow @return attributes

2015-01-26 Thread ketmar via Digitalmars-d
On Tue, 27 Jan 2015 02:11:55 +, Jonathan Marler wrote: This has become quite frustrating. I'm not sure how else to explain myself so maybe I'm just being dumb. you are dumb. you can be dumb for some time, and then BANG! your proposal is silently made right. yet you're still dumb. that is

Re: accept @pure @nothrow @return attributes

2015-01-26 Thread ketmar via Digitalmars-d
On Mon, 26 Jan 2015 17:56:00 -0800, Walter Bright wrote: On 1/26/2015 2:15 PM, Foo wrote: Because you/we are community members and therefore second-class citizens. If we suggest or discuss something, it is not that important. But if a small reddit post is made, it matters more. Major

Re: accept @pure @nothrow @return attributes

2015-01-27 Thread ketmar via Digitalmars-d
On Tue, 27 Jan 2015 01:32:21 +, Mike wrote: In fact, it is the attitude against change that has put me on the fence about D, when I was quite an advocate about a year ago. It has also made me reluctant to put forth the necessary effort to study and make any significant contributions

Re: accept @pure @nothrow @return attributes

2015-01-27 Thread ketmar via Digitalmars-d
On Tue, 27 Jan 2015 08:30:43 +, Jonathan Marler wrote: On Tuesday, 27 January 2015 at 07:50:36 UTC, ketmar wrote: On Tue, 27 Jan 2015 02:11:55 +, Jonathan Marler wrote: This has become quite frustrating. I'm not sure how else to explain myself so maybe I'm just being dumb. you are

Re: accept @pure @nothrow @return attributes

2015-01-27 Thread ketmar via Digitalmars-d
On Tue, 27 Jan 2015 08:44:17 +, deadalnix wrote: On Tuesday, 27 January 2015 at 08:07:11 UTC, ketmar wrote: heh. i was very passionate about D, and i started the process of migration of all our work projects (i'm a head of software company with ~100 employees, if anybody is interested) to

Re: Window creation, for phobos?

2015-01-27 Thread ketmar via Digitalmars-d
On Tue, 27 Jan 2015 23:07:44 +, Rikki Cattermole wrote: dlangui doesn't depend upon it. that dependency was removed since then. And isn't aware of different versions. of course. that's why it failed on my FreeImage: my library is older than the one that Derelict is expecting to find, and

Re: Window creation, for phobos?

2015-01-27 Thread ketmar via Digitalmars-d
On Wed, 28 Jan 2015 11:04:55 +1300, Rikki Cattermole wrote: First off, Derelict-Util/Derelict-GL3 is a biggy here. Its old code, lets admit it. Its also a standard for loading shared library functions. please, not Derelict! it's a great work and all that, but it's habit to load ALL functions

Re: accept @pure @nothrow @return attributes

2015-01-27 Thread ketmar via Digitalmars-d
On Tue, 27 Jan 2015 10:21:52 +, Jonathan Marler wrote: Interesting points. Thanks for the response, it's a relief to hear people making sense :) the funny thing is that Ola is a kind of bad child too. heh. signature.asc Description: PGP signature

Re: accept @pure @nothrow @return attributes

2015-01-27 Thread ketmar via Digitalmars-d
On Tue, 27 Jan 2015 10:43:12 +, Ola Fosheim Grøstad wrote: Hey, I have gray hairs in my beard! me too! signature.asc Description: PGP signature

Re: accept @pure @nothrow @return attributes

2015-01-27 Thread ketmar via Digitalmars-d
On Tue, 27 Jan 2015 11:20:41 +0100, Jacob Carlborg wrote: On 2015-01-26 20:50, Walter Bright wrote: It's good to have this discussion. Previously, it's all been advocacy and break my code by forcing a change from pure = @pure. Just a few days ago on slashdot, an anonymous D user wrote:

Re: D garbage collector and real-time systems

2015-01-27 Thread ketmar via Digitalmars-d
On Wed, 28 Jan 2015 06:58:41 +, Tom wrote: Or is there now the possibility of disabling the GC altogether, or replacing it with a refcounting 'GC' etc? you still can do manual memory management with `malloc()` and friends. but you must be very cautious with dynamic arrays and slices. may

Re: Window creation, for phobos?

2015-01-28 Thread ketmar via Digitalmars-d
On Wed, 28 Jan 2015 10:36:22 +0900, Mike Parker wrote: On 1/28/2015 7:54 AM, ketmar wrote: On Wed, 28 Jan 2015 11:04:55 +1300, Rikki Cattermole wrote: First off, Derelict-Util/Derelict-GL3 is a biggy here. Its old code, lets admit it. Its also a standard for loading shared library

Re: Window creation, for phobos?

2015-01-27 Thread ketmar via Digitalmars-d
On Wed, 28 Jan 2015 02:32:44 +, Tofu Ninja wrote: On Wednesday, 28 January 2015 at 00:58:41 UTC, ketmar wrote: On Tue, 27 Jan 2015 23:07:44 +, Rikki Cattermole wrote: dlangui doesn't depend upon it. that dependency was removed since then. And isn't aware of different versions. of

Re: Who knows about https://github.com/D-Programming-Language/tools/blob/master/update.sh?

2015-01-28 Thread ketmar via Digitalmars-d
On Wed, 28 Jan 2015 19:53:09 +0100, Benjamin Thaut wrote: Microsoft does not have a offical C compiler. They only have a C++ compiler. And as a result they are also not supporting C99, they only support that part of C which is required by C++ and afaik C99 is not required by the C++ standard.

Re: accept @pure @nothrow @return attributes

2015-01-28 Thread ketmar via Digitalmars-d
On Wed, 28 Jan 2015 18:54:27 +, Zach the Mystic wrote: I think a keyword is a keyword is a keyword. If it's a keyword to the right it should be one everywhere. How is somethign that's a built-in attribute one place and an identifier in another not context sensitive. yep. that is slave to

Re: accept @pure @nothrow @return attributes

2015-01-28 Thread ketmar via Digitalmars-d
On Thu, 29 Jan 2015 00:29:26 +, Brian Schott wrote: On Thursday, 29 January 2015 at 00:14:51 UTC, ketmar wrote: that's good. as we already have at least 4 codebases to build tools upon, and you gave up using that and insisting on writing another one, and failed... i doubt that your tool

<    5   6   7   8   9   10   11   12   13   14   >