[Issue 14269] Enum is not implicitly converted to base type when using ref

2015-03-12 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14269 Ali Cehreli acehr...@yahoo.com changed: What|Removed |Added CC||acehr...@yahoo.com ---

Re: D + .NET

2015-03-12 Thread Kagamin via Digitalmars-d-learn
Only native libraries are more or less accessible from D, not .net. For .net you can use pinvoke (if you can build D dll) or IPC.

Re: How does laziness and UFCS interact?

2015-03-12 Thread Ali Çehreli via Digitalmars-d-learn
On 03/10/2015 08:00 AM, John Colvin wrote: On Tuesday, 10 March 2015 at 14:41:00 UTC, Logan Capaldo wrote: On Monday, 9 March 2015 at 22:15:43 UTC, Ali Çehreli wrote: You are right. I had the same observation at minute 11:27 below, where I warn against UFCS with assumeWontThrow:

Re: D + .NET

2015-03-12 Thread Jacob Carlborg via Digitalmars-d-learn
On 2015-03-11 14:30, Sativa wrote: Can you point out where it says anything about wpf or .NET? I'm having trouble finding it. I even searched for .net and wpf but still no luck ;/ Maybe you posted the wrong link by accident? You did mention win32 ;) For OS X Cocoa is the GUI framework. To

Re: DIP75 - Release Process

2015-03-12 Thread Jacob Carlborg via Digitalmars-d
On 2015-03-11 17:27, Anon wrote: Ignoring that for a moment, where does it stop? Do we include an editor? [sarcasm] Why not? Every D developer needs to edit their code! Let's go ahead and call Eclipse+DDT the standard D editor, and bundle that with dmd. [/sarcasm] I don't see why not. Both

[Issue 14267] [REG2.067beta2] ICE when determining if a function can be inlined

2015-03-12 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14267 --- 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/c29d893a456a9dfee532c2b0a5f6615b3dbc080f Merge pull request #4471 from

Re: How to find the cause of crash?

2015-03-12 Thread zhmt via Digitalmars-d-learn
I want to know how to locate the position of crashing in dlang? for example: there is stack dump in c, exception stack in java, they could help to locate the root of problems.

Re: DIP75 - Release Process

2015-03-12 Thread Paolo Invernizzi via Digitalmars-d
On Wednesday, 11 March 2015 at 08:57:14 UTC, Rikki Cattermole wrote: On 11/03/2015 9:00 p.m., Vladimir Panteleev wrote: On Wednesday, 11 March 2015 at 07:32:48 UTC, Andrei Alexandrescu wrote: It doesn't seem so to me. You find easy weaknesses in my vision and pump on them instead of working on

Re: Post increment and decrement

2015-03-12 Thread Don via Digitalmars-d
On Thursday, 12 March 2015 at 04:06:14 UTC, Rikki Cattermole wrote: On 12/03/2015 1:50 p.m., Andrei Alexandrescu wrote: On 3/11/15 10:23 AM, welkam wrote: Observation Nr. 1 People prefer to write var++ instead of ++var. Observation Nr. 2 Because of observation Nr. 1 and other reasons

Looking for MQTT client library

2015-03-12 Thread o3o via Digitalmars-d-learn
I'm looking a MQTT [0] client library written in D, if it exists. Anyone know of any? I found the great Atila Neves MQTT broker (server) [1], and some C/C++ libraries [2], so, possible solutions are: a. Write a native D library from scratch b. Adapt/copy some parts of [1] to convert from

Re: How to use UFCS and std.algorithm.sort?

2015-03-12 Thread Ali Çehreli via Digitalmars-d-learn
On 03/10/2015 01:40 AM, Jonathan M Davis via Digitalmars-d-learn wrote: .sort on an array is going to use the built-in sort property. You need to use parens if you want to use the function in std.algorithm with an array and UFCS, e.g. arr.sort(); Didn't know that. Nice! Another option is to

[Issue 12420] [AA] Can't set associative array with array as key value using key type

2015-03-12 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12420 --- Comment #9 from Denis Shelomovskij verylonglogin@gmail.com --- (In reply to Kenji Hara from comment #8) (In reply to Martin Nowak from comment #7) So what's the conclusion here? Denis argues that mutable key char[] should be allowed for

[Issue 14270] New: final interface: attribute is ignored

2015-03-12 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14270 Issue ID: 14270 Summary: final interface: attribute is ignored Product: D Version: D2 Hardware: x86_64 OS: All Status: NEW Severity: minor Priority:

Re: Post increment and decrement

2015-03-12 Thread Rikki Cattermole via Digitalmars-d
On 12/03/2015 9:12 p.m., Don wrote: On Thursday, 12 March 2015 at 04:06:14 UTC, Rikki Cattermole wrote: On 12/03/2015 1:50 p.m., Andrei Alexandrescu wrote: On 3/11/15 10:23 AM, welkam wrote: Observation Nr. 1 People prefer to write var++ instead of ++var. Observation Nr. 2 Because of

Re: enum and static if

2015-03-12 Thread ketmar via Digitalmars-d-learn
On Wed, 11 Mar 2015 13:48:45 +, Namespace wrote: This code does not work: enum Test { Foo, static if (__VERSION__ = 2067) Bar, } Quatz } Any chance that this could work? nope. `static if` is statement, so it works only where statement is allowed. the

[Issue 14280] New: Links to command line tools have disappeared from navigation

2015-03-12 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14280 Issue ID: 14280 Summary: Links to command line tools have disappeared from navigation Product: D Version: D2 Hardware: All OS: All Status: NEW

[Issue 14277] New: Compile-time array casting error - ugly error report

2015-03-12 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14277 Issue ID: 14277 Summary: Compile-time array casting error - ugly error report Product: D Version: D2 Hardware: x86_64 OS: Windows Status: NEW Severity:

Re: D + .NET

2015-03-12 Thread Kagamin via Digitalmars-d-learn
You can also try to expose COM-accessible .net interface and use it through COM in D.

Link in the changelog broken

2015-03-12 Thread Szymon Gatner via Digitalmars-d
Hey, when clicking Change Log on the dlang.org it already says Version D 2.067 Mar 1, 2015 even tho big number on the left menu says 2.066.1. Regardless if this is desired (even if confusing) the link embedded at this header is broken.

Re: DIP75 - Release Process

2015-03-12 Thread Anon via Digitalmars-d
On Wednesday, 11 March 2015 at 07:19:57 UTC, Vladimir Panteleev wrote: What is indubitably, actually, very important, and something I'm surprised you haven't pushed for since long ago, is making it EASY to get more things. Dub absolutely must be a part of D, and not today but one or more years

Re: [WORK] [IMPORTANT] [URGENT] ddox generation

2015-03-12 Thread Walter Bright via Digitalmars-d
On 3/10/2015 10:27 PM, Walter Bright wrote: While we're at it: http://dlang.org/ Note that there are no navigation links to the how to use dmd pages, like: http://dlang.org/dmd-windows.html These used to be there, but have vanished at some point in the last couple months. This is

Re: Bypass the protection level

2015-03-12 Thread Namespace via Digitalmars-d-learn
On Wednesday, 11 March 2015 at 15:22:43 UTC, Ali Çehreli wrote: On 03/11/2015 04:40 AM, Namespace wrote: I can call draw on Drawable, because it is declared public and I cannot call draw on Sprite because it is declared protected (this is already a bit weird, why can I redeclare the

Re: auto function attributes based on type

2015-03-12 Thread ketmar via Digitalmars-d-learn
On Thu, 12 Mar 2015 04:51:40 +, amber wrote: On Thursday, 12 March 2015 at 04:04:28 UTC, weaselcat wrote: On Thursday, 12 March 2015 at 03:12:15 UTC, amber wrote: ... http://dlang.org/function.html#function-attribute-inference might be a good read if you haven't read it already. I did

Re: is eC alot like D?

2015-03-12 Thread ketmar via Digitalmars-d-learn
On Wed, 11 Mar 2015 19:26:13 -0700, Parke via Digitalmars-d-learn wrote: On Wed, 11 Mar 2015 06:22:32 +, sclytrack wrote: - You can include C library headers directly in your .ec code, without any special keyword (like extern C in C++) On Wed, Mar 11, 2015 at 1:59 AM, ketmar via

Re: Post increment and decrement

2015-03-12 Thread Kagamin via Digitalmars-d
On Wednesday, 11 March 2015 at 17:23:15 UTC, welkam wrote: Because of all this why not make only one increment/decrement operator and have post increment/decrement to be called by template name, because it is a template? template post_inc(T) { auto tmp = T; T++; return tmp; } That's how it

Re: D + .NET

2015-03-12 Thread Kagamin via Digitalmars-d-learn
On Wednesday, 11 March 2015 at 13:30:27 UTC, Sativa wrote: On Wednesday, 11 March 2015 at 08:45:15 UTC, Kagamin wrote: http://wiki.dlang.org/Libraries_and_Frameworks#GUI_Libraries Can you point out where it says anything about wpf or .NET? I'm having trouble finding it. I even searched for

Re: Smart references

2015-03-12 Thread via Digitalmars-d
On Wednesday, 11 March 2015 at 20:33:07 UTC, Andrei Alexandrescu wrote: #70: Attempting to copy a reference fails on account of the disabled postblit. There should be a way to tell the compiler to automatically invoke alias this and create a copy of that guy. #81: Moving from a reference

[Issue 14135] std.uuid.randomUUID breaks @safety

2015-03-12 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14135 --- Comment #3 from github-bugzi...@puremagic.com --- Commit pushed to master at https://github.com/D-Programming-Language/phobos https://github.com/D-Programming-Language/phobos/commit/9010ecd4b0942e0eb0c37c073d4d53f1984f7872 Merge pull request

Re: moving from c++ to D is easy?

2015-03-12 Thread ketmar via Digitalmars-d-learn
On Thu, 12 Mar 2015 13:01:29 +, ayush wrote: Is D a lot like c++ ? I am currently midway through learning c++ and I also want to learn D . So should i focus on one or learn both together? Will I find learning D easy if I already know c++ ? D is like C++, but made by human beings for human

Re: moving from c++ to D is easy?

2015-03-12 Thread Dennis Ritchie via Digitalmars-d-learn
On Thursday, 12 March 2015 at 13:01:31 UTC, ayush wrote: Is D a lot like c++? Enough. So should i focus on one or learn both together? You can study both together, although it is better to focus on one. Will I find learning D easy if I already know c++? Yes.

Re: moving from c++ to D is easy?

2015-03-12 Thread Daniel Kozák via Digitalmars-d-learn
On Thu, 12 Mar 2015 13:35:18 + ayush via Digitalmars-d-learn digitalmars-d-learn@puremagic.com wrote: On Thursday, 12 March 2015 at 13:13:40 UTC, Dennis Ritchie wrote: On Thursday, 12 March 2015 at 13:01:31 UTC, ayush wrote: Is D a lot like c++? Enough. So should i focus on one

Re: moving from c++ to D is easy?

2015-03-12 Thread ayush via Digitalmars-d-learn
On Thursday, 12 March 2015 at 13:13:40 UTC, Dennis Ritchie wrote: On Thursday, 12 March 2015 at 13:01:31 UTC, ayush wrote: Is D a lot like c++? Enough. So should i focus on one or learn both together? You can study both together, although it is better to focus on one. Will I find

[Issue 14135] std.uuid.randomUUID breaks @safety

2015-03-12 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14135 monarchdo...@gmail.com changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

Re: moving from c++ to D is easy?

2015-03-12 Thread weaselcat via Digitalmars-d-learn
On Thursday, 12 March 2015 at 13:01:31 UTC, ayush wrote: Is D a lot like c++ ? I am currently midway through learning c++ and I also want to learn D . So should i focus on one or learn both together? Will I find learning D easy if I already know c++ ? D is very much like C++, but the biggest

Re: moving from c++ to D is easy?

2015-03-12 Thread Dennis Ritchie via Digitalmars-d-learn
On Thursday, 12 March 2015 at 13:44:50 UTC, Daniel Kozák wrote: D is much easier to learn so I will start with it. And then you can try learn C++ if you still want and need it. Yes, but in D for beginners little literature, so I would recommend starting with C++.

Re: DIP75 - Release Process

2015-03-12 Thread Anon via Digitalmars-d
On Thursday, 12 March 2015 at 07:44:01 UTC, Jacob Carlborg wrote: On 2015-03-11 17:27, Anon wrote: Ignoring that for a moment, where does it stop? Do we include an editor? [sarcasm] Why not? Every D developer needs to edit their code! Let's go ahead and call Eclipse+DDT the standard D

Re: moving from c++ to D is easy?

2015-03-12 Thread ketmar via Digitalmars-d-learn
On Thu, 12 Mar 2015 13:56:28 +, Dennis Ritchie wrote: On Thursday, 12 March 2015 at 13:44:50 UTC, Daniel Kozák wrote: D is much easier to learn so I will start with it. And then you can try learn C++ if you still want and need it. Yes, but in D for beginners little literature, so I

Re: moving from c++ to D is easy?

2015-03-12 Thread via Digitalmars-d-learn
On Thursday, 12 March 2015 at 13:56:29 UTC, Dennis Ritchie wrote: On Thursday, 12 March 2015 at 13:44:50 UTC, Daniel Kozák wrote: D is much easier to learn so I will start with it. And then you can try learn C++ if you still want and need it. Yes, but in D for beginners little literature, so

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

2015-03-12 Thread Walter Bright via Digitalmars-d
On 3/12/2015 5:20 PM, Andrei Alexandrescu wrote: * Golang: simple! D1 was the simple version of D. People wanted more. Java was originally sold as, and got a great of adoption because, it was a C++ like language with all that annoying complexity removed. There's no doubt about it, people

Re: dmd 2.066.1 cannot build phobos 2.066.1

2015-03-12 Thread Vladimir Panteleev via Digitalmars-d
On Friday, 13 March 2015 at 00:15:32 UTC, Daniel Murphy wrote: Andrei Alexandrescu wrote in message news:mdt2mj$8gc$1...@digitalmars.com... I wonder how this could have happened. Here's what I did: git clone --quiet -b v2.066.1 --depth=1 git://github.com/D-Programming-Language/dmd.git

Re: Memoization in compile-time

2015-03-12 Thread Rikki Cattermole via Digitalmars-d-learn
On 13/03/2015 2:23 p.m., Dennis Ritchie wrote: Is it possible to run this code in compile-time? import std.stdio, std.functional; ulong fact(ulong n) { alias mfact = memoize!fact; return n 2 ? 1 : n * mfact(n - 1); } void main() { writeln(fact(10)); } In CommonLisp variable

Re: dmd 2.066.1 cannot build phobos 2.066.1

2015-03-12 Thread Daniel Murphy via Digitalmars-d
Vladimir Panteleev wrote in message news:tlocllgihbddloqla...@forum.dlang.org... What Git version are you using? git clone --branch learned to work with tags in Git v1.7.10. Yeah, it was 1.7.1.

[Issue 14269] Enum is not implicitly converted to base type when using ref

2015-03-12 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14269 --- Comment #34 from Walter Bright bugzi...@digitalmars.com --- Here's the change that did it: https://github.com/D-Programming-Language/dmd/pull/4177/files Essentially, it's the removal of the toBasetype() call. The problem with deprecating

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

2015-03-12 Thread Vladimir Panteleev via Digitalmars-d
On Friday, 13 March 2015 at 00:20:40 UTC, Andrei Alexandrescu wrote: I'd love us to derive a few action items from this and other feedback. I think the front page focuses too much on the language itself at the moment. Perhaps we should continue with the direction with forum integration, and

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

2015-03-12 Thread Dicebot via Digitalmars-d
On Friday, 13 March 2015 at 04:49:38 UTC, Walter Bright wrote: On 3/12/2015 8:40 PM, Joakim wrote: As for will it be around?, presumably he thinks Go will stick around because of Google. That cuts both ways, because if Google stops funding, maybe Pike and the other main devs abandon it, while

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

2015-03-12 Thread Vladimir Panteleev via Digitalmars-d
On Friday, 13 March 2015 at 02:17:31 UTC, bearophile wrote: D can't be a single-purpose language. Yeah. The other side of the coin is that, from a D user's perspective, Go and Rust are one-trick ponies.

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

2015-03-12 Thread bearophile via Digitalmars-d
Andrei Alexandrescu: ## some or all of @safe, immutable, pure should be the default +1 I have a ER on @safe by default and Walter seems to agree. But I'd like more. A strict D mode? :-) # libraries, projects should be prominently listed and nurtured # single-idea advantage; D seems to

[Issue 14279] [REG:git-head]Failed to make dmd because of idgen : HOST_DC missing

2015-03-12 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14279 Walter Bright bugzi...@digitalmars.com changed: What|Removed |Added CC|

Re: chaining splitters

2015-03-12 Thread dnoob via Digitalmars-d-learn
Yes. That's it! Thanks a lot. On Wednesday, 11 March 2015 at 09:29:12 UTC, Dave S wrote: On Wednesday, 11 March 2015 at 00:00:39 UTC, dnoob wrote: Hello, I am parsing some text and I have the following; string text = some very long text; foreach(line; splitter(text, [13, 10])) {

Re: is eC alot like D?

2015-03-12 Thread Jerome St-Louis via Digitalmars-d-learn
To confirm guys eC does support C preprocessing. The C preprocessor is invoked before the eC compiler does its parsing. And all native C headers should work fine as well, although there might be some portability issues on more obscure platforms which have not yet been tested which would

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

2015-03-12 Thread Freddy via Digitalmars-d
On Friday, 13 March 2015 at 02:17:31 UTC, bearophile wrote: A strict D mode? That sounds like an amazing idea.

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

2015-03-12 Thread bachmeier via Digitalmars-d
I made a choice between Go and D in 2013. I started with Go and was very happy when I switched to D. The languages appeal to different users. This is how I interpreted some of the advantages of Go: + very small language, very concise simple A limited, inflexible language + feels like a

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

2015-03-12 Thread Joakim via Digitalmars-d
On Friday, 13 March 2015 at 00:20:40 UTC, Andrei Alexandrescu wrote: A friend of mine needed to complete a small project and thought of using a language he didn't know for it. He already knew I work on D so he considered it alongside Go. He ended up choosing the latter, and documented his

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

2015-03-12 Thread Walter Bright via Digitalmars-d
On 3/12/2015 8:40 PM, Joakim wrote: As for will it be around?, presumably he thinks Go will stick around because of Google. That cuts both ways, because if Google stops funding, maybe Pike and the other main devs abandon it, while D seemingly has never had anyone sponsoring Walter, so there's

[Issue 14269] Enum is not implicitly converted to base type when using ref

2015-03-12 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14269 --- Comment #23 from Dicebot pub...@dicebot.lv --- (In reply to Jonathan M Davis from comment #22) I think that allowing an implicit conversion to be used with a ref parameter is a clear violation of the type system. If we want to fix it via

Re: moving from c++ to D is easy?

2015-03-12 Thread Dennis Ritchie via Digitalmars-d-learn
On Thursday, 12 March 2015 at 14:47:22 UTC, ketmar wrote: there are alot of books on C++ 'cause C++ is insanely complicated and inconsistend. D design is *MUCH* better, so D doesn't need so many books teaching arcane art of programming. Well, in principle, can be started with a D, but

Re: DIP75 - Release Process

2015-03-12 Thread Kapps via Digitalmars-d
On Thursday, 12 March 2015 at 07:44:01 UTC, Jacob Carlborg wrote: On 2015-03-11 17:27, Anon wrote: Ignoring that for a moment, where does it stop? Do we include an editor? [sarcasm] Why not? Every D developer needs to edit their code! Let's go ahead and call Eclipse+DDT the standard D

Re: Targeting Vulkan and SPIR-V

2015-03-12 Thread Iain Buclaw via Digitalmars-d
On 12 March 2015 at 15:57, John Colvin via Digitalmars-d digitalmars-d@puremagic.com wrote: On Saturday, 7 March 2015 at 02:18:22 UTC, Iain Buclaw wrote: On 6 Mar 2015 23:30, Joakim via Digitalmars-d digitalmars-d@puremagic.com wrote: The ground-up redesign of OpenGL, now called Vulkan,

Re: Looking for MQTT client library

2015-03-12 Thread Atila Neves via Digitalmars-d-learn
Those are basically your options. You could wrap Mosquitto (a C implementation), but I'd just use the existing MQTT broker code. Then again, I would say that. :) Atila On Thursday, 12 March 2015 at 07:59:55 UTC, o3o wrote: I'm looking a MQTT [0] client library written in D, if it exists.

Re: Targeting Vulkan and SPIR-V

2015-03-12 Thread John Colvin via Digitalmars-d
On Saturday, 7 March 2015 at 02:18:22 UTC, Iain Buclaw wrote: On 6 Mar 2015 23:30, Joakim via Digitalmars-d digitalmars-d@puremagic.com wrote: The ground-up redesign of OpenGL, now called Vulkan, has been announced at GDC:

Re: Post increment and decrement

2015-03-12 Thread Nick Treleaven via Digitalmars-d
On 12/03/2015 10:14, monarch_dodra wrote: On Wednesday, 11 March 2015 at 17:23:15 UTC, welkam wrote: Observation Nr. 1 People prefer to write var++ instead of ++var. The root of your reasoning stems from this observation, which I argue is wrong. The recommendation has always been to chose

[Issue 14277] Compile-time array casting error - ugly error report

2015-03-12 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14277 --- Comment #2 from Ketmar Dark ket...@ketmar.no-ip.org --- Created attachment 1491 -- https://issues.dlang.org/attachment.cgi?id=1491action=edit trim output of long expressions as far as i know, `Expression::toChars()` is not using in anything

YOW 2014 talk on D now online

2015-03-12 Thread Andrei Alexandrescu via Digitalmars-d
http://www.reddit.com/r/programming/comments/2yt1ek/andrei_alexandrescu_on_d_at_yow2014_local_imports/ https://twitter.com/D_Programming/status/576066527155367936 https://www.facebook.com/dlang.org/posts/1031487990198215 Andrei

[Issue 14277] Compile-time array casting error - ugly error report

2015-03-12 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14277 --- Comment #3 from Ketmar Dark ket...@ketmar.no-ip.org --- p.s. this can ruing long utf-8 literals, though. not that i really care. --

Video: Cool Things about D - Why and how we use it at Facebook

2015-03-12 Thread Gary Willoughby via Digitalmars-d-announce
Found this on Reddit, thought you guys would like to take a look. https://yow.eventer.com/yow-2014-1222/cool-things-about-d-why-and-how-we-use-it-at-facebook-by-andrei-alexandrescu-1741 Reddit link:

Re: Andrei Alexandrescu on D at YOW2014: Local imports, relaxed functional purity, generative programming

2015-03-12 Thread Brian Schott via Digitalmars-d-announce
On Thursday, 12 March 2015 at 20:39:08 UTC, Walter Bright wrote: https://www.reddit.com/r/programming/comments/2yt1ek/andrei_alexandrescu_on_d_at_yow2014_local_imports/ http://forum.dlang.org/thread/mdsh5n$2kta$1...@digitalmars.com

Re: Looking for MQTT client library

2015-03-12 Thread Orfeo via Digitalmars-d-learn
My preferred option is b. that is convert your MQTT broker to MQTT client. I'm not a MQTT expert, so, in your opinion what parts of your code should I change? (i.e. message module should be the same, peraphs module stream...) Thanks for your support (and also for your unit-threaded

Re: Standard GUI framework inspired by Qt

2015-03-12 Thread Piotrek via Digitalmars-d
On Tuesday, 10 March 2015 at 01:25:05 UTC, karl wrote: Please don't use SDL2 and such as basis, or OpenGL with glBegin+glReadPixels without FBOs and PBOs (not Pbuffers). I'm a GL driver dev (userspace) for a smaller company, and I see too much gore in popular software like that (gnome3 is the

Andrei Alexandrescu on D at YOW2014: Local imports, relaxed functional purity, generative programming

2015-03-12 Thread Walter Bright via Digitalmars-d-announce
https://www.reddit.com/r/programming/comments/2yt1ek/andrei_alexandrescu_on_d_at_yow2014_local_imports/

Re: YOW 2014 talk on D now online

2015-03-12 Thread Gary Willoughby via Digitalmars-d
Great talk. This is what i found most interesting: Andrei @ 12:52: It doesn't have a large corporate sponsor at the moment, but that's due to change. Oooo. Any more information on this?

Re: Template Parameter Deduction

2015-03-12 Thread Paul D Anderson via Digitalmars-d-learn
On Wednesday, 11 March 2015 at 23:04:15 UTC, Ali Çehreli wrote: On 03/11/2015 03:44 PM, Paul D Anderson wrote: This used to work in D2.065: given 1) public T mul(T)(in T x, in T y, Context context = T.context) if (isDecimal!T) // one template parameter for the two input values and

[Issue 14269] Enum is not implicitly converted to base type when using ref

2015-03-12 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14269 --- Comment #31 from Steven Schveighoffer schvei...@yahoo.com --- (In reply to Andrei Alexandrescu from comment #30) This is a simple accepts-wrong-code bug that needs to be fixed with no deprecation. Any code that relies on this bug was wrong. I

Re: moving from c++ to D is easy?

2015-03-12 Thread Namespace via Digitalmars-d-learn
On Thursday, 12 March 2015 at 18:57:51 UTC, Ali Çehreli wrote: On 03/12/2015 06:01 AM, ayush wrote: Is D a lot like c++ ? I came to D from C++. I remember the following being notable differences: - In D, classes have reference semantics. I quickly realized that this is not an issue

[Issue 14269] Enum is not implicitly converted to base type when using ref

2015-03-12 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14269 Steven Schveighoffer schvei...@yahoo.com changed: What|Removed |Added Status|NEW |RESOLVED

Re: dfmt 0.1.5 (codename: entomology)

2015-03-12 Thread Brian Schott via Digitalmars-d-announce
https://github.com/Hackerpilot/dfmt/releases/tag/v0.1.7 #92 Statement after case label after unbraced if is indented #93 Version-else inside if is indented incorrectly #94 Wrong indent with function literal

Re: YOW 2014 talk on D now online

2015-03-12 Thread CraigDillabaugh via Digitalmars-d
On Thursday, 12 March 2015 at 17:08:08 UTC, Andrei Alexandrescu wrote: http://www.reddit.com/r/programming/comments/2yt1ek/andrei_alexandrescu_on_d_at_yow2014_local_imports/ https://twitter.com/D_Programming/status/576066527155367936 https://www.facebook.com/dlang.org/posts/1031487990198215

Re: moving from c++ to D is easy?

2015-03-12 Thread Dennis Ritchie via Digitalmars-d-learn
On Thursday, 12 March 2015 at 18:57:51 UTC, Ali Çehreli wrote: If you are a mortal like myself, you may find out years later that you are still at the midway point. Happened to me several times when I was learning C++. :) О, yeah.

[Issue 14269] Enum is not implicitly converted to base type when using ref

2015-03-12 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14269 --- Comment #32 from Andrei Alexandrescu and...@erdani.com --- (In reply to Steven Schveighoffer from comment #31) (In reply to Andrei Alexandrescu from comment #30) This is a simple accepts-wrong-code bug that needs to be fixed with no

Re: YOW 2014 talk on D now online

2015-03-12 Thread Andrei Alexandrescu via Digitalmars-d
On 3/12/15 1:03 PM, CraigDillabaugh wrote: On Thursday, 12 March 2015 at 17:08:08 UTC, Andrei Alexandrescu wrote: http://www.reddit.com/r/programming/comments/2yt1ek/andrei_alexandrescu_on_d_at_yow2014_local_imports/ https://twitter.com/D_Programming/status/576066527155367936

[Issue 14269] Enum is not implicitly converted to base type when using ref

2015-03-12 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14269 --- Comment #24 from Steven Schveighoffer schvei...@yahoo.com --- (In reply to Jonathan M Davis from comment #22) I think that allowing an implicit conversion to be used with a ref parameter is a clear violation of the type system. class C {}

[Issue 14269] Enum is not implicitly converted to base type when using ref

2015-03-12 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14269 --- Comment #26 from Ketmar Dark ket...@ketmar.no-ip.org --- class C {} void foo (Object o) { o = new Object(); } void main () { C c = new C; auto n = c; foo(c); assert(c == n); // assertion passed } --

Re: moving from c++ to D is easy?

2015-03-12 Thread Ali Çehreli via Digitalmars-d-learn
On 03/12/2015 06:01 AM, ayush wrote: Is D a lot like c++ ? I came to D from C++. I remember the following being notable differences: - In D, classes have reference semantics. I quickly realized that this is not an issue because so many of my C++ types were hand-reference-typified :p by this

[Issue 14269] Enum is not implicitly converted to base type when using ref

2015-03-12 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14269 --- Comment #28 from Steven Schveighoffer schvei...@yahoo.com --- The Object contents are passed by ref, just like the enum contents are. The difference is that the ref is implicit for the object. In other words, a ref to a C object is implicitly

[Issue 14269] Enum is not implicitly converted to base type when using ref

2015-03-12 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14269 --- Comment #27 from Ketmar Dark ket...@ketmar.no-ip.org --- ah, sorry, replace that assert with `assert(c is n);` for clarity. --

[Issue 14269] Enum is not implicitly converted to base type when using ref

2015-03-12 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14269 Ketmar Dark ket...@ketmar.no-ip.org changed: What|Removed |Added CC||ket...@ketmar.no-ip.org

[Issue 14269] Enum is not implicitly converted to base type when using ref

2015-03-12 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14269 --- Comment #30 from Andrei Alexandrescu and...@erdani.com --- This is a simple accepts-wrong-code bug that needs to be fixed with no deprecation. Any code that relies on this bug was wrong. --

[Issue 14269] Enum is not implicitly converted to base type when using ref

2015-03-12 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14269 --- Comment #29 from Jonathan M Davis issues.dl...@jmdavisprog.com --- (In reply to Steven Schveighoffer from comment #24) (In reply to Jonathan M Davis from comment #22) I think that allowing an implicit conversion to be used with a ref parameter

moving from c++ to D is easy?

2015-03-12 Thread ayush via Digitalmars-d-learn
Is D a lot like c++ ? I am currently midway through learning c++ and I also want to learn D . So should i focus on one or learn both together? Will I find learning D easy if I already know c++ ?

Re: dmd 2.066.1 cannot build phobos 2.066.1

2015-03-12 Thread Daniel Murphy via Digitalmars-d
Andrei Alexandrescu wrote in message news:mdt2mj$8gc$1...@digitalmars.com... I wonder how this could have happened. Here's what I did: git clone --quiet -b v2.066.1 --depth=1 git://github.com/D-Programming-Language/dmd.git dmd-2.066.1 None of these clone commands work for me, I get:

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

2015-03-12 Thread Andrei Alexandrescu via Digitalmars-d
A friend of mine needed to complete a small project and thought of using a language he didn't know for it. He already knew I work on D so he considered it alongside Go. He ended up choosing the latter, and documented his decision making process in a few notes that he subsequently shared with

Re: dmd 2.066.1 cannot build phobos 2.066.1

2015-03-12 Thread Andrei Alexandrescu via Digitalmars-d
On 3/12/15 5:15 PM, Daniel Murphy wrote: Andrei Alexandrescu wrote in message news:mdt2mj$8gc$1...@digitalmars.com... I wonder how this could have happened. Here's what I did: git clone --quiet -b v2.066.1 --depth=1 git://github.com/D-Programming-Language/dmd.git dmd-2.066.1 None of these

Re: dmd 2.066.1 cannot build phobos 2.066.1

2015-03-12 Thread Daniel Murphy via Digitalmars-d
Andrei Alexandrescu wrote in message news:mdtb6c$f2f$1...@digitalmars.com... Could that be because our default remotes are different (e.g. yours is your own fork)? -- Andrei I don't think so, but it could be because I've got an older version of git. I took a quick look at the 2.066.1 tag on

[Issue 7067] std.random.RandomSample and RandomCover are poorly designed

2015-03-12 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=7067 --- Comment #23 from Joseph Rushton Wakeling joseph.wakel...@webdrake.net --- @Martin @Jens: sorry for radio silence on this. It's a busy period, and I recently moved to a new apartment where I still don't have home internet. I don't think that

Discounted hotel rates for DConf 2015

2015-03-12 Thread Andrei Alexandrescu via Digitalmars-d-announce
DConf 2015 registration is OPEN! Hampton Inn offers a special hotel rate for DConf 2015 attendees. Just click through the link to it to get it: http://dconf.org/2015/venue.html. -- Andrei

Re: Deadcode: A code editor in D

2015-03-12 Thread Jonas Drewsen via Digitalmars-d-announce
On Sunday, 8 March 2015 at 20:33:44 UTC, Kingsley wrote: On Monday, 19 January 2015 at 20:41:11 UTC, Rikki Cattermole wrote: On 20/01/2015 1:48 a.m., Jonas Drewsen wrote: On Sunday, 18 January 2015 at 22:00:51 UTC, Piotrek wrote: On Friday, 16 January 2015 at 21:19:08 UTC, Jonas Drewsen

Re: moving from c++ to D is easy?

2015-03-12 Thread Ali Çehreli via Digitalmars-d-learn
On 03/12/2015 01:19 PM, Namespace wrote: On Thursday, 12 March 2015 at 18:57:51 UTC, Ali Çehreli wrote: On 03/12/2015 06:01 AM, ayush wrote: Is D a lot like c++ ? I came to D from C++. I remember the following being notable differences: - In D, classes have reference semantics. I

dmd 2.066.1 cannot build phobos 2.066.1

2015-03-12 Thread Andrei Alexandrescu via Digitalmars-d
I wonder how this could have happened. Here's what I did: git clone --quiet -b v2.066.1 --depth=1 git://github.com/D-Programming-Language/dmd.git dmd-2.066.1 git clone --quiet -b v2.066.1 --depth=1 git://github.com/D-Programming-Language/druntime.git druntime-2.066.1 git clone --quiet -b

Re: moving from c++ to D is easy?

2015-03-12 Thread Namespace via Digitalmars-d-learn
On Thursday, 12 March 2015 at 21:41:07 UTC, Ali Çehreli wrote: On 03/12/2015 01:19 PM, Namespace wrote: On Thursday, 12 March 2015 at 18:57:51 UTC, Ali Çehreli wrote: On 03/12/2015 06:01 AM, ayush wrote: Is D a lot like c++ ? I came to D from C++. I remember the following being notable

Re: Post increment and decrement

2015-03-12 Thread monarch_dodra via Digitalmars-d
On Wednesday, 11 March 2015 at 17:23:15 UTC, welkam wrote: Observation Nr. 1 People prefer to write var++ instead of ++var. The root of your reasoning stems from this observation, which I argue is wrong. The recommendation has always been to chose ++var, unless you have a reason to chose

[Issue 14269] Enum is not implicitly converted to base type when using ref

2015-03-12 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14269 --- Comment #21 from Steven Schveighoffer schvei...@yahoo.com --- (In reply to Ali Cehreli from comment #18) I think this boils down to whether an enum's conversion to its base type is an implicit cast (an rvalue), versus the enum itself (an

  1   2   >