Re: let (x,y) = ...

2015-11-23 Thread visitor via Digitalmars-d-announce
On Monday, 23 November 2015 at 16:58:43 UTC, Andrea Fontana wrote: Nice. Why first enforce is "==" rather than ">=" ? This prevents something like: auto arr = ["hello", "world", "!"]; string hello; string world; let (hello, world) = arr; note that this is thedeemon's work ! (sorry couldn't

Re: let (x,y) = ...

2015-11-23 Thread thedeemon via Digitalmars-d-announce
On Monday, 23 November 2015 at 16:58:43 UTC, Andrea Fontana wrote: Nice. Why first enforce is "==" rather than ">=" ? This prevents something like: auto arr = ["hello", "world", "!"]; let (hello, world) = arr; The very first post of this thread should have answered this. Two options are

Re: let (x,y) = ...

2015-11-23 Thread visitor via Digitalmars-d-announce
On Monday, 23 November 2015 at 18:38:45 UTC, thedeemon wrote: let (hello, world)[] = arr; i think what Andrea Fontana is talking is the other way around your solution allows let (hello, world)[] = ["hi"]; Andrea Fontana(s allows let (hello, world) = ["hi", "there", "!"];

Re: The D Language Foundation has $5000 to its name

2015-11-23 Thread Jacob Carlborg via Digitalmars-d-announce
On 2015-11-22 22:45, Brad Anderson wrote: Apple isn't as important because I don't believe it does the Untrusted Developer warning for opening .dmg files nor does it do it for running command line applications. It does for installers. -- /Jacob Carlborg

Re: let (x,y) = ...

2015-11-23 Thread visitor via Digitalmars-d-announce
On Monday, 23 November 2015 at 10:28:53 UTC, thedeemon wrote: On Sunday, 22 November 2015 at 18:47:34 UTC, visitor wrote: What is the reason for using pointers (alias pointerOf(T) = T* etc...) it works without ! what am i missing ? What and how exactly works without? My original solution

Re: let (x,y) = ...

2015-11-23 Thread thedeemon via Digitalmars-d-announce
On Sunday, 22 November 2015 at 18:47:34 UTC, visitor wrote: What is the reason for using pointers (alias pointerOf(T) = T* etc...) it works without ! what am i missing ? What and how exactly works without? My original solution remembers in the constructor addresses of variables to fill,

Re: The D Language Foundation has $5000 to its name

2015-11-23 Thread Vladimir Panteleev via Digitalmars-d-announce
On Monday, 23 November 2015 at 04:37:18 UTC, Dicebot wrote: And how about GPG signing of releases which comes free and actually helps? :P When you hover over any of the download links on http://dlang.org/download.html, a corresponding .sig link will appear. Is this not what you're referring

Re: Release D 2.069.0

2015-11-23 Thread Márcio Martins via Digitalmars-d-announce
On Thursday, 5 November 2015 at 01:08:42 UTC, Martin Nowak wrote: On Wednesday, 4 November 2015 at 17:52:23 UTC, Dmitry Olshansky wrote: If host machine is x64 bit windows try setting large address aware bit on the executable (there are tools to do that IRC), would allow it to eat up to ~4

Re: [OT] bitcoin donation

2015-11-23 Thread Steven Schveighoffer via Digitalmars-d-announce
On 11/21/15 2:06 AM, Joakim wrote: On Tuesday, 10 November 2015 at 17:23:08 UTC, Steven Schveighoffer wrote: On 10/30/15 3:29 AM, Joakim wrote: But I don't see how bitcoin is similar to any of those, perhaps you have _some_ explanation? You don't have to keep the bitcoin, all those sites

Re: The D Language Foundation has $5000 to its name

2015-11-23 Thread Vladimir Panteleev via Digitalmars-d-announce
On Sunday, 22 November 2015 at 21:45:06 UTC, Brad Anderson wrote: 1. SSL certificate for dlang.org (optionally getting an EV certificate would be a good way to advertise the Foundation in the address bar). With https://letsencrypt.org/ launching very soon, it might not be necessary to pay

Re: The D Language Foundation has $5000 to its name

2015-11-23 Thread Dicebot via Digitalmars-d-announce
On Monday, 23 November 2015 at 08:33:10 UTC, Vladimir Panteleev wrote: On Monday, 23 November 2015 at 04:37:18 UTC, Dicebot wrote: And how about GPG signing of releases which comes free and actually helps? :P When you hover over any of the download links on http://dlang.org/download.html, a

Re: let (x,y) = ...

2015-11-23 Thread karabuta via Digitalmars-d-announce
On Friday, 20 February 2015 at 09:12:26 UTC, Jacob Carlborg wrote: On 2015-02-19 05:38, thedeemon wrote: Creating tuples and returning them from functions is trivial in D: auto getTuple() { return tuple("Bob", 42); } but using them afterwards can be confusing and error prone auto t =

Re: [OT] bitcoin donation

2015-11-23 Thread Joakim via Digitalmars-d-announce
On Monday, 23 November 2015 at 12:11:36 UTC, Steven Schveighoffer wrote: One could ask the same thing about any currency that isn't the one accepted at a store. Sure, online is much less of a hassle, but it's still a little time to sign up and administer. Is that much of Ali's time worth

Re: let (x,y) = ...

2015-11-23 Thread visitor via Digitalmars-d-announce
On Monday, 23 November 2015 at 20:10:49 UTC, visitor wrote: Andrea Fontana(s allows let (hello, world) = ["hi", "there", "!"]; of course in your version let (hello, world)[] = ["hi", "there", "!"] works but for consistency with range, i think Fontana's note is relevant

Re: let (x,y) = ...

2015-11-23 Thread thedeemon via Digitalmars-d-announce
On Monday, 23 November 2015 at 22:32:57 UTC, visitor wrote: On Monday, 23 November 2015 at 20:10:49 UTC, visitor wrote: Andrea Fontana(s allows let (hello, world) = ["hi", "there", "!"]; of course in your version let (hello, world)[] = ["hi", "there", "!"] works but for consistency with

Re: Calypso progress report (+ updated MingW64 build)

2015-11-23 Thread deadalnix via Digitalmars-d-announce
On Monday, 23 November 2015 at 23:33:21 UTC, Elie Morisse wrote: On Monday, 23 November 2015 at 00:04:44 UTC, deadalnix wrote: I'd be very interested by the LLVM IR that this spout out. Here's the IR for https://github.com/Syniurge/Calypso/blob/master/tests/calypso/eh/std_exception.d :

Re: Silicon Valley D Meetup November 19, 2015

2015-11-23 Thread deadalnix via Digitalmars-d-announce
On Friday, 20 November 2015 at 08:10:26 UTC, Ali Çehreli wrote: - deadalnix was there, who is always a great person to have around both technically and friendshippally. :p I'd like to add that Ali was there, and he is also a great person to have around :)

Re: Calypso progress report (+ updated MingW64 build)

2015-11-23 Thread Elie Morisse via Digitalmars-d-announce
On Monday, 23 November 2015 at 00:04:44 UTC, deadalnix wrote: I'd be very interested by the LLVM IR that this spout out. Here's the IR for https://github.com/Syniurge/Calypso/blob/master/tests/calypso/eh/std_exception.d : https://paste.kde.org/pjxrqjjhp Also, good work, pulling that one

Re: LDC 0.17.0 alpha cross-compiler for Android/ARM, D 2.068.2

2015-11-23 Thread Joakim via Digitalmars-d-announce
On Thursday, 12 November 2015 at 02:51:46 UTC, Jakob Ovrum wrote: The issues I had came with using the 64-bit NDK - it worked as explained in the article once I switched to the 32-bit NDK. The issue appeared to be with the linker: /usr/bin/ld.bfd would complain that it was not configured for

Re: let (x,y) = ...

2015-11-23 Thread thedeemon via Digitalmars-d-announce
On Monday, 23 November 2015 at 11:12:33 UTC, visitor wrote: My original solution remembers in the constructor addresses of variables to fill, then does the filling in opAssign operator, so I needed a way to store the references and used pointers for that. yes, but you are using ref : "auto

Re: let (x,y) = ...

2015-11-23 Thread Andrea Fontana via Digitalmars-d-announce
On Monday, 23 November 2015 at 11:12:33 UTC, visitor wrote: this work fine with your unittest : auto let(Ts...)(ref Ts vars) { struct Let { void opAssign( Tuple!Ts xs ) { foreach(i, t; Ts) vars[i] = xs[i]; } static if (sameTypes!Ts) {

https everywhere!

2015-11-23 Thread Walter Bright via Digitalmars-d-announce
I'm pleased to announce that Jan Knepper has gotten us some proper certificates now, and dlang.org and digitalmars.com are now fully https!

Re: https everywhere!

2015-11-23 Thread Adam D. Ruppe via Digitalmars-d-announce
On Monday, 23 November 2015 at 20:55:32 UTC, Walter Bright wrote: I'm pleased to announce that Jan Knepper has gotten us some proper certificates now, and dlang.org and digitalmars.com are now fully https! So it isn't actually https everywhere. On a https page, the browsers by

Re: https everywhere!

2015-11-23 Thread Walter Bright via Digitalmars-d-announce
On 11/23/2015 1:11 PM, Adam D. Ruppe wrote: On Monday, 23 November 2015 at 20:55:32 UTC, Walter Bright wrote: I'm pleased to announce that Jan Knepper has gotten us some proper certificates now, and dlang.org and digitalmars.com are now fully https! So it isn't actually https

Re: https everywhere!

2015-11-23 Thread cym13 via Digitalmars-d-announce
On Monday, 23 November 2015 at 21:18:58 UTC, Walter Bright wrote: The widgets don't, but the forums worked when I tried it. Firefox 42.0 here, neither the widgets nor the forums worked.