[Issue 12029] Swap on std.container.Array?

2015-11-21 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12029 bb.t...@gmx.com changed: What|Removed |Added Status|NEW |RESOLVED CC|

[Issue 13099] @nogc std.range.stride

2015-11-21 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13099 bb.t...@gmx.com changed: What|Removed |Added Status|NEW |RESOLVED CC|

Re: why --shebang for rdmd?

2015-11-21 Thread Marc Schütz via Digitalmars-d-learn
On Saturday, 21 November 2015 at 05:20:16 UTC, Shriramana Sharma wrote: Hello. The following code works fine for me: #! /usr/bin/env rdmd import std.stdio; void main() { writeln(2); } So what is the use of the --shebang option of rdmd? http://dlang.org/rdmd.html does not shed much light on

Re: Here's looking at you, kid

2015-11-21 Thread Sönke Ludwig via Digitalmars-d
Am 20.11.2015 um 14:57 schrieb David DeWitt: On Friday, 20 November 2015 at 12:52:15 UTC, crimaniak wrote: Library reference is not very good too. In my previous try with D I even made a browser extension to show classes, functions, variables, etc. in 'jump to' section with different

[Issue 12865] splitLines returns empty array on empty string

2015-11-21 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12865 bb.t...@gmx.com changed: What|Removed |Added Status|NEW |RESOLVED CC|

Re: Calypso progress report (+ updated MingW64 build)

2015-11-21 Thread Elie Morisse via Digitalmars-d-announce
On Monday, 16 November 2015 at 19:35:58 UTC, Andrei Alexandrescu wrote: That's great progress. Do you have documentation for how things work? For example, what's the lifetime of the pointer people will get from std::exception::what(). IMHO: don't worry about catching exceptions by value; it's

[Issue 5520] bitfieldsOn

2015-11-21 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=5520 bb.t...@gmx.com changed: What|Removed |Added Status|ASSIGNED|RESOLVED CC|

Re: Pattern Based Design

2015-11-21 Thread Ola Fosheim Grøstad via Digitalmars-d
On Friday, 20 November 2015 at 15:11:58 UTC, Chris wrote: Defining interfaces gets you only so far. As a program grows, you have to change many things and redefine the interface later. What looks like a good plan/interface when you set out, invariably will have to be revised and changed later.

[Issue 12861] std.algorithm.sort of core.simd.int4[] too

2015-11-21 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12861 bb.t...@gmx.com changed: What|Removed |Added Status|NEW |RESOLVED CC|

[Issue 12840] @nogc std.range.iota(x, y, step)

2015-11-21 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12840 bb.t...@gmx.com changed: What|Removed |Added Status|NEW |RESOLVED CC|

[Issue 15296] [REG2.069] cannot inline simple function that calls use non-inlinable statements

2015-11-21 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15296 --- Comment #3 from github-bugzi...@puremagic.com --- Commits pushed to stable at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/4c0c8088d34aca637aef07122ec8a26ce1244fe3 fix Issue 15296 - cannot

[Issue 15369] [REG master] id.d(369): Error: Outside Unicode code space

2015-11-21 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15369 Kenji Hara changed: What|Removed |Added Summary|id.d(369): Error: Outside |[REG master] id.d(369):

Range violation instead of empty slice on a[3 .. 2]

2015-11-21 Thread SimonN via Digitalmars-d-learn
string a = "hello"; string b = a[3 .. 2]; I expect b to become an empty slice, because 3 is >= 2 already after 0 increments, making the slice length 0. Instead, the code throws a range violation. Expressions of this kind come up, e.g., when taking slices near the end of arrays, like

Re: Referencer

2015-11-21 Thread Kagamin via Digitalmars-d
On Friday, 20 November 2015 at 18:48:51 UTC, Alex Parrill wrote: * I wouldn't mark this struct as @safe because the passed value may leave scope, causing invalid dereferences. Interestingly, it's not enough to not mark it as safe: the templated methods will still be inferred as @safe. At last

[Issue 12767] writeln of a struct with toString returning char[N]

2015-11-21 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12767 bb.t...@gmx.com changed: What|Removed |Added Status|NEW |RESOLVED CC|

[Issue 5743] readf cannot read wchar or dchar from UTF-8 stdin

2015-11-21 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=5743 bb.t...@gmx.com changed: What|Removed |Added Status|NEW |RESOLVED CC|

Re: GTKD - Create a simple TextBox?

2015-11-21 Thread kaiyori via Digitalmars-d-learn
On Saturday, 21 November 2015 at 15:57:35 UTC, TheDGuy wrote: Hello, i haven't found any tutorial about creating a textbox with GTKD yet, so maybe someone could show me how to do it? How About gtk.TextView ?

Re: Scott Meyers wants to bring default zero-initialization to C++, mentions TDPL for precedent

2015-11-21 Thread Joakim via Digitalmars-d
On Saturday, 21 November 2015 at 10:29:57 UTC, deadalnix wrote: Yes PHP sclaes. PHP scales like crazy? PHP scales better than whatever modern framework you'll present me. There is just nothing that came up with the same execution. Not what I've heard. Thankfully, I've been able to avoid

Short-circuit evaluation in D

2015-11-21 Thread Shriramana Sharma via Digitalmars-d
Hello. From http://dlang.org/expression.html#OrOrExpression and the subsequent AndAndExpression section it is clear to me that D does indeed employ short-circuit evaluation true to being part of the C family. But I am disappointed to note that D is not mentioned at

Re: D equivalent of Python's try..else

2015-11-21 Thread Shriramana Sharma via Digitalmars-d-learn
Russel Winder via Digitalmars-d-learn wrote: > else on for and while, whilst technically redundant as well, does > occasionally make for a nicer read, for very analogous reasons. It can > generally avoid the need for extra booleans and other state variables. Hmm – I forgot Python has `else` for

Re: Scott Meyers wants to bring default zero-initialization to C++, mentions TDPL for precedent

2015-11-21 Thread Ola Fosheim Grøstad via Digitalmars-d
On Saturday, 21 November 2015 at 13:28:20 UTC, Joakim wrote: an inroads into. They simply optimize programmer convenience over efficiency and that's an acceptable tradeoff in certain niches. However, even in that market, there are badly-designed languages that do unreasonably well. That's

Re: dataframe implementations

2015-11-21 Thread Laeeth Isharc via Digitalmars-d-learn
On Thursday, 19 November 2015 at 22:14:01 UTC, ZombineDev wrote: On Thursday, 19 November 2015 at 06:33:06 UTC, Jay Norwood wrote: On Wednesday, 18 November 2015 at 22:46:01 UTC, jmh530 wrote: My sense is that any data frame implementation should try to build on the work that's being done with

[Issue 13608] std.range range interfaces hide @safe-ness

2015-11-21 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13608 bb.t...@gmx.com changed: What|Removed |Added Status|NEW |RESOLVED CC|

"final" as function parameter attribute?

2015-11-21 Thread Johan Engelen via Digitalmars-d-learn
On http://dlang.org/function.html, I read that "final" is a valid attribute/storage class for function parameters: InOutX: auto TypeCtor final <-- ?? in lazy out ref scope This looks like a documentation error, but perhaps it's not. I hope someone can explain

[Issue 13177] There may be a problem with std.bitmanip.BitArray and the "in" operator of associative arrays?

2015-11-21 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13177 bb.t...@gmx.com changed: What|Removed |Added Status|NEW |RESOLVED CC|

[Issue 15369] id.d(369): Error: Outside Unicode code space

2015-11-21 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15369 Kenji Hara changed: What|Removed |Added Keywords||wrong-code

Re: D equivalent of Python's try..else

2015-11-21 Thread Russel Winder via Digitalmars-d-learn
On Sat, 2015-11-21 at 19:26 +0530, Shriramana Sharma via Digitalmars-d- learn wrote: > […] > Hmm – I forgot Python has `else` for `for` and `while` too. But it's > a tad > difficult to wrap one's mind around the meaning of the word `else` in > this > particular context whereas it actually means

Re: Scott Meyers wants to bring default zero-initialization to C++, mentions TDPL for precedent

2015-11-21 Thread Chris Wright via Digitalmars-d
On Sat, 21 Nov 2015 13:28:19 +, Joakim wrote: > Actually, it is. What percentage of the PHP code out there needs to > scale much? Wordpress and MediaWiki are both written in PHP. But this level of scaling doesn't require a framework that scales. It requires a database system that scales, a

[Issue 10191] std.array.array and Unicode strings

2015-11-21 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=10191 bb.t...@gmx.com changed: What|Removed |Added Status|NEW |RESOLVED CC|

Re: Compile time strings auto concatenation!?

2015-11-21 Thread Marc Schütz via Digitalmars-d-learn
On Friday, 20 November 2015 at 20:39:58 UTC, Ilya wrote: Can DMD frontend optimize string concatenation ``` enum Double(S) = S ~ S; assert(condition, "Text " ~ Double!"+" ~ ___FUNCTION__); ``` to ``` assert(condition, "Text ++_function_name_"); ``` ? At least for string (and array?)

Re: Here's looking at you, kid

2015-11-21 Thread Johan Engelen via Digitalmars-d
On Friday, 13 November 2015 at 22:34:18 UTC, Andrei Alexandrescu wrote: Amid increased scrutiny it's important to focus on improving documentation. I suggest everyone in the community to consider improving dlang.org in any way. Perhaps a slight increase in priority for pull request

Re: Rust's simple download script

2015-11-21 Thread Jacob Carlborg via Digitalmars-d
On 2015-11-20 18:43, Martin Nowak wrote: Because we already have the code for Travis-CI and Heroku. DVM was already available before that ;) Also an intransparent binary is yet another hurdle trying to convince someone to try out D. Not sure how much difference that is compared to the

Case-insensitive BoyerMooreFinder

2015-11-21 Thread Ralf via Digitalmars-d-learn
Hi, I just spend a day with the D programming language and I am very excited about being able to write such performant programs in such an clear and concise way! I tried to write a little search tool. The BoyerMooreFinder docs say that the comparison operator can be specified.

Re: Range violation instead of empty slice on a[3 .. 2]

2015-11-21 Thread BBaz via Digitalmars-d-learn
On Saturday, 21 November 2015 at 18:03:07 UTC, SimonN wrote: string a = "hello"; string b = a[3 .. 2]; I expect b to become an empty slice, because 3 is >= 2 already after 0 increments, making the slice length 0. Instead, the code throws a range violation. Expressions of this kind

Re: Range violation instead of empty slice on a[3 .. 2]

2015-11-21 Thread SimonN via Digitalmars-d-learn
On Saturday, 21 November 2015 at 18:28:51 UTC, BBaz wrote: this is only an error if bounds checking is not turned on. If you compile your example with DMD option "-boundscheck=off", nothing happens, and the slice will be equal (here) to a[3..$]; Thanks for the hint, I tested this with

[Issue 13608] std.range range interfaces hide @safe-ness

2015-11-21 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13608 Brad Roberts changed: What|Removed |Added Status|RESOLVED|REOPENED

[Issue 6663] std.stdio conflicts with core.stdc.stdio

2015-11-21 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=6663 bb.t...@gmx.com changed: What|Removed |Added Status|NEW |RESOLVED CC|

[Issue 11572] eager apply for ranges

2015-11-21 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=11572 bb.t...@gmx.com changed: What|Removed |Added Status|ASSIGNED|RESOLVED CC|

[Issue 15366] Enum typed as bool behaves as bool even when cast

2015-11-21 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15366 Kenji Hara changed: What|Removed |Added Keywords||pull --- Comment #3 from

[Issue 13654] @nogc std.range.enumerate

2015-11-21 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13654 bb.t...@gmx.com changed: What|Removed |Added Status|NEW |RESOLVED CC|

GTKD - Create a simple TextBox?

2015-11-21 Thread TheDGuy via Digitalmars-d-learn
Hello, i haven't found any tutorial about creating a textbox with GTKD yet, so maybe someone could show me how to do it?

Re: `finally` is redundant?

2015-11-21 Thread Chris Wright via Digitalmars-d-learn
On Sat, 21 Nov 2015 11:15:22 +0530, Shriramana Sharma wrote: > The page http://dlang.org/exception-safe.html says: > > "It's try-finally that becomes redundant." > > IIUC this is because we have scope(exit). > > Does this mean that `finally` should eventually be removed from the > language?

[Issue 15366] Enum typed as bool behaves as bool even when cast

2015-11-21 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15366 --- 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/67a21a9ec222e63ad5bab445662de9114878bc90 fix Issue 15366 - Enum

Re: Range violation instead of empty slice on a[3 .. 2]

2015-11-21 Thread Jonathan M Davis via Digitalmars-d-learn
On Saturday, November 21, 2015 18:28:49 BBaz via Digitalmars-d-learn wrote: > this is only an error if bounds checking is not turned on. If you > compile your example with DMD option "-boundscheck=off", nothing > happens, and the slice will be equal (here) to a[3..$]; It's a logic error

Re: Persistent list

2015-11-21 Thread Dicebot via Digitalmars-d
On Tuesday, 17 November 2015 at 23:50:13 UTC, Timon Gehr wrote: Main use case for such containers is efficient thread sharing and that totally justifies specialized container (or even allocator) for each dataset. Persistent containers are useful even if only a single thread is involved, as

Re: DConf keynote speaker ideas

2015-11-21 Thread Jeremy DeHaan via Digitalmars-d
On Saturday, 21 November 2015 at 22:21:48 UTC, Walter Bright wrote: On 11/17/2015 10:48 AM, Andrei Alexandrescu wrote: I'm thinking of inviting a notable industry luminary to deliver a conference keynote. Please reply to this with ideas! -- Andrei Maybe someone from JPL who can talk about

Re: `finally` is redundant?

2015-11-21 Thread Meta via Digitalmars-d-learn
On Saturday, 21 November 2015 at 05:45:25 UTC, Shriramana Sharma wrote: The page http://dlang.org/exception-safe.html says: "It's try-finally that becomes redundant." IIUC this is because we have scope(exit). Does this mean that `finally` should eventually be removed from the language? The

[Issue 3862] std.file.copy does not have the same behavior as cp

2015-11-21 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=3862 --- Comment #12 from Vladimir Panteleev --- (In reply to Jonathan M Davis from comment #11) > @Vladimir Well, clearly you and I have very different expectations when > copying files. You haven't addressed any of the

[Issue 12624] [REG 2.064] Internal error: backend\cgobj.c 2313 with Rebindable!(immutable TimeZone) in std.datetime

2015-11-21 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12624 Vladimir Panteleev changed: What|Removed |Added CC|

Re: copy and array length vs capacity. (Doc suggestion?)

2015-11-21 Thread Jonathan M Davis via Digitalmars-d-learn
On Sunday, November 22, 2015 03:19:54 Jon D via Digitalmars-d-learn wrote: > On Sunday, 22 November 2015 at 00:31:53 UTC, Jonathan M Davis > wrote: > > > > Honestly, arrays suck as output ranges. They don't get appended > > to; they get filled, and for better or worse, the documentation > > for

Re: copy and array length vs capacity. (Doc suggestion?)

2015-11-21 Thread Jon D via Digitalmars-d-learn
On Sunday, 22 November 2015 at 00:10:07 UTC, Ali Çehreli wrote: May I suggest that you improve that page. ;) If you don't already have a clone o the repo, you can do it easily by clicking the "Improve this page" button on that page. Hi Ali, thanks for the quick response. And point taken :) I

Re: `finally` is redundant?

2015-11-21 Thread Jonathan M Davis via Digitalmars-d-learn
On Sunday, November 22, 2015 02:00:46 Chris Wright via Digitalmars-d-learn wrote: > On Sat, 21 Nov 2015 16:10:45 -0800, Jonathan M Davis via > Digitalmars-d-learn wrote: > > > Getting rid of finally would mean > > reimplementing scope(exit) differently > > Well, we could keep try/finally as a

[Issue 15369] [REG master] id.d(369): Error: Outside Unicode code space

2015-11-21 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15369 Kenji Hara changed: What|Removed |Added Keywords||pull --- Comment #3 from

[Issue 3862] std.file.copy does not have the same behavior as cp

2015-11-21 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=3862 --- Comment #11 from Jonathan M Davis --- @Vladimir Well, clearly you and I have very different expectations when copying files. What I expect and what is pretty much exactly what cp does. e.g. with cp, I always use

Re: Wanted: Review manager for std.experimental.range.ndslice

2015-11-21 Thread Ilya Yaroshenko via Digitalmars-d
On Monday, 16 November 2015 at 09:56:57 UTC, Andrea Fontana wrote: On Monday, 16 November 2015 at 03:05:03 UTC, Ilya Yaroshenko wrote: Hello, Review manager for N-dimensional ranges is wanted Docs (see PR for latest version):

[Issue 3862] std.file.copy does not have the same behavior as cp

2015-11-21 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=3862 --- Comment #14 from Jonathan M Davis --- (In reply to Vladimir Panteleev from comment #12) > (In reply to Jonathan M Davis from comment #11) > > @Vladimir Well, clearly you and I have very different expectations when >

Re: DFLAGS ignored. How to get a dmd installation on windows that is 64 bit only

2015-11-21 Thread Rikki Cattermole via Digitalmars-d-learn
On 22/11/15 7:34 PM, Carl Sturtivant wrote: The docs for dmd for windows say that the DFLAGS environment variable's value will be appended to the dmd command line. I tried this with -m64 as the value and this is ignored. http://dlang.org/dmd-windows.html#environment More generally, is there a

Re: DConf keynote speaker ideas

2015-11-21 Thread Walter Bright via Digitalmars-d
On 11/21/2015 6:32 PM, Jeremy DeHaan wrote: On Saturday, 21 November 2015 at 22:21:48 UTC, Walter Bright wrote: On 11/17/2015 10:48 AM, Andrei Alexandrescu wrote: I'm thinking of inviting a notable industry luminary to deliver a conference keynote. Please reply to this with ideas! -- Andrei

Re: Scott Meyers wants to bring default zero-initialization to C++, mentions TDPL for precedent

2015-11-21 Thread Walter Bright via Digitalmars-d
On 11/21/2015 3:32 PM, deadalnix wrote: Rather than having an aristocratic attitude toward these languages that we perceive as badly designed, we should be really asking ourselves the question "what did they get right ? Can we get it right too ?". Because we have signal here, that is telling us

Re: D equivalent of Python's try..else

2015-11-21 Thread Mike Parker via Digitalmars-d-learn
On Saturday, 21 November 2015 at 13:57:01 UTC, Shriramana Sharma wrote: Hmm – I forgot Python has `else` for `for` and `while` too. But it's a tad difficult to wrap one's mind around the meaning of the word `else` in this particular context whereas it actually means `nobreak`. Perhaps if

Re: DConf keynote speaker ideas

2015-11-21 Thread Jonathan M Davis via Digitalmars-d
On Sunday, 22 November 2015 at 07:27:54 UTC, Walter Bright wrote: On 11/21/2015 6:32 PM, Jeremy DeHaan wrote: On Saturday, 21 November 2015 at 22:21:48 UTC, Walter Bright wrote: On 11/17/2015 10:48 AM, Andrei Alexandrescu wrote: I'm thinking of inviting a notable industry luminary to deliver

Re: Persistent list

2015-11-21 Thread Dicebot via Digitalmars-d
On Sunday, 22 November 2015 at 00:38:19 UTC, Dicebot wrote: In my opinion it is perfectly reasonable to require GC for such "casual" usage and require narrow specialization from RC based solutions. Physical immutability requires external memory tracking - GC provides that naturally and trying

Re: Scott Meyers wants to bring default zero-initialization to C++, mentions TDPL for precedent

2015-11-21 Thread Chris Wright via Digitalmars-d
On Sat, 21 Nov 2015 21:51:43 +, Ola Fosheim Grøstad wrote: > On Saturday, 21 November 2015 at 17:31:15 UTC, Chris Wright wrote: >> Collating a large number of examples like this would give us a good >> overall estimate of each platform's scaling properties. > > In order to scale easily you

Re: Scott Meyers wants to bring default zero-initialization to C++, mentions TDPL for precedent

2015-11-21 Thread Dicebot via Digitalmars-d
On Saturday, 21 November 2015 at 22:47:46 UTC, deadalnix wrote: Could you elaborate a bit on this? What about the execution model is so right? PHP runs every request in complete isolation. All global/static are in fact request local storage. This has many consequences, namely: - It scales.

DFLAGS ignored. How to get a dmd installation on windows that is 64 bit only

2015-11-21 Thread Carl Sturtivant via Digitalmars-d-learn
The docs for dmd for windows say that the DFLAGS environment variable's value will be appended to the dmd command line. I tried this with -m64 as the value and this is ignored. http://dlang.org/dmd-windows.html#environment More generally, is there a standard rearrangement of files and

Re: Scott Meyers wants to bring default zero-initialization to C++, mentions TDPL for precedent

2015-11-21 Thread deadalnix via Digitalmars-d
On Saturday, 21 November 2015 at 13:28:20 UTC, Joakim wrote: Not proud, I've argued in this forum in the past that scripting languages have an audience that D is unlikely to make much of an inroads into. They simply optimize programmer convenience over efficiency and that's an acceptable

copy and array length vs capacity. (Doc suggestion?)

2015-11-21 Thread Jon D via Digitalmars-d-learn
Something I found confusing was the relationship between array capacity and copy(). A short example: void main() { import std.algorithm: copy; auto a = new int[](3); assert(a.length == 3); [1, 2, 3].copy(a); // Okay int[] b; b.reserve(3); assert(b.capacity >=

Re: "final" as function parameter attribute?

2015-11-21 Thread Jonathan M Davis via Digitalmars-d-learn
On Saturday, November 21, 2015 15:14:31 Johan Engelen via Digitalmars-d-learn wrote: > On http://dlang.org/function.html, I read that "final" is a valid > attribute/storage class for function parameters: > > InOutX: > auto > TypeCtor > final <-- ?? > in > lazy > out

Re: `finally` is redundant?

2015-11-21 Thread Jonathan M Davis via Digitalmars-d-learn
On Saturday, November 21, 2015 11:15:22 Shriramana Sharma via Digitalmars-d-learn wrote: > The page http://dlang.org/exception-safe.html says: > > "It's try-finally that becomes redundant." > > IIUC this is because we have scope(exit). > > Does this mean that `finally` should eventually be

Re: Range violation instead of empty slice on a[3 .. 2]

2015-11-21 Thread Jonathan M Davis via Digitalmars-d-learn
On Saturday, November 21, 2015 18:03:05 SimonN via Digitalmars-d-learn wrote: > string a = "hello"; > string b = a[3 .. 2]; > > I expect b to become an empty slice, because 3 is >= 2 already > after 0 increments, making the slice length 0. Instead, the code > throws a range violation. >

Building the Docs with checked out code downoads old dmd

2015-11-21 Thread yawniek via Digitalmars-d-learn
i'm trying to build the docs as per http://wiki.dlang.org/Building_DMD#Building_the_Docs i have a working setup to build the latest dmd/druntime/phobos but somehow the makefile tries to download an old dmd version and my bandwith currently is a bit restricted and i want an offline version.

Re: Building the Docs with checked out code downoads old dmd

2015-11-21 Thread H. S. Teoh via Digitalmars-d-learn
On Sat, Nov 21, 2015 at 08:29:51PM +, yawniek via Digitalmars-d-learn wrote: > i'm trying to build the docs as per > http://wiki.dlang.org/Building_DMD#Building_the_Docs > > i have a working setup to build the latest dmd/druntime/phobos but > somehow the makefile tries to download an old dmd

Re: Scott Meyers wants to bring default zero-initialization to C++, mentions TDPL for precedent

2015-11-21 Thread Ola Fosheim Grøstad via Digitalmars-d
On Saturday, 21 November 2015 at 17:31:15 UTC, Chris Wright wrote: Collating a large number of examples like this would give us a good overall estimate of each platform's scaling properties. In order to scale easily you need to use NOSQL databases, but you can use any language. IIRC youtube

[Issue 12507] SysTime.init.toString should not segfault

2015-11-21 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12507 --- Comment #6 from Jonathan M Davis --- (In reply to Alaksiej Stankievič from comment #5) > What is currently status of this? > > I have hit this just now, and it consumes 1 hour of investigation. As the "Depends on"

Re: copy and array length vs capacity. (Doc suggestion?)

2015-11-21 Thread Ali Çehreli via Digitalmars-d-learn
Hi Jon! :) On 11/21/2015 03:34 PM, Jon D wrote: > Preconditions: > target shall have enough room to accomodate the entirety of source. > > Clarifying that "enough room" means 'length' rather than 'capacity' > might be beneficial. May I suggest that you improve that page. ;) If you

Re: DConf keynote speaker ideas

2015-11-21 Thread Ali Çehreli via Digitalmars-d
On 11/17/2015 08:18 PM, Ali Çehreli wrote: > On 11/17/2015 10:48 AM, Andrei Alexandrescu wrote: >> I'm thinking of inviting a notable industry luminary to deliver a >> conference keynote. Please reply to this with ideas! -- Andrei > > Rob Pike comes to mind. He can tell us about the state of

Re: Formal Review of std.range.ndslice

2015-11-21 Thread Ilya Yaroshenko via Digitalmars-d
On Friday, 20 November 2015 at 21:55:18 UTC, Andrei Alexandrescu wrote: On 11/20/15 4:23 PM, Jack Stouffer wrote: On Friday, 20 November 2015 at 20:33:27 UTC, Ilya wrote: Great! Added to PR's TODO list :-) This will be interesting because there is no defined idiomatic usage of

Re: DConf keynote speaker ideas

2015-11-21 Thread Walter Bright via Digitalmars-d
On 11/17/2015 10:48 AM, Andrei Alexandrescu wrote: I'm thinking of inviting a notable industry luminary to deliver a conference keynote. Please reply to this with ideas! -- Andrei Maybe someone from JPL who can talk about software on space probes.

Re: Scott Meyers wants to bring default zero-initialization to C++, mentions TDPL for precedent

2015-11-21 Thread deadalnix via Digitalmars-d
On Saturday, 21 November 2015 at 11:40:41 UTC, John Colvin wrote: Actually, that's not surprising, Rasmus Ledorf is a specialist of the web, while he doesn't knows much about PL both theoretically and practically (by his own admission). As a result, you get a passable language, but you know

Re: Scott Meyers wants to bring default zero-initialization to C++, mentions TDPL for precedent

2015-11-21 Thread deadalnix via Digitalmars-d
On Saturday, 21 November 2015 at 13:28:20 UTC, Joakim wrote: As to Gresham's law, it's kind of defeated by the move to hack (http://hacklang.org/) isn't it. But let's not get the facts get in the way of a good story. Doesn't that prove it? Why create something that you feel is better

[Issue 13301] Inline ASM documentation does not allow string literals

2015-11-21 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13301 --- Comment #2 from github-bugzi...@puremagic.com --- Commits pushed to master at https://github.com/D-Programming-Language/dlang.org https://github.com/D-Programming-Language/dlang.org/commit/34d6b17582002eb1f3178c77664e459b555d7c4b Issue 13301 -

Re: copy and array length vs capacity. (Doc suggestion?)

2015-11-21 Thread Jonathan M Davis via Digitalmars-d-learn
On Saturday, November 21, 2015 23:34:25 Jon D via Digitalmars-d-learn wrote: > Something I found confusing was the relationship between array > capacity and copy(). A short example: > > void main() > { > import std.algorithm: copy; > > auto a = new int[](3); > assert(a.length == 3);

Re: `finally` is redundant?

2015-11-21 Thread Chris Wright via Digitalmars-d-learn
On Sat, 21 Nov 2015 16:10:45 -0800, Jonathan M Davis via Digitalmars-d-learn wrote: > Getting rid of finally would mean > reimplementing scope(exit) differently Well, we could keep try/finally as a concept inside the compiler but change the parser so it rejects finally blocks.

Re: Scott Meyers wants to bring default zero-initialization to C++, mentions TDPL for precedent

2015-11-21 Thread Dicebot via Digitalmars-d
On Friday, 20 November 2015 at 20:37:10 UTC, deadalnix wrote: PHP scales. This is why people use it. And this is why people will continue to use it. This is why Facebook, wikipedia, Baidu, wordpress and many others are using it. This is one of most ridiculous statements I have ever heard from

Re: copy and array length vs capacity. (Doc suggestion?)

2015-11-21 Thread Jon D via Digitalmars-d-learn
On Sunday, 22 November 2015 at 00:31:53 UTC, Jonathan M Davis wrote: Honestly, arrays suck as output ranges. They don't get appended to; they get filled, and for better or worse, the documentation for copy is probably assuming that you know that. If you want your array to be appended to when

[Issue 3862] std.file.copy does not have the same behavior as cp

2015-11-21 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=3862 --- Comment #13 from Vladimir Panteleev --- (In reply to Vladimir Panteleev from comment #12) > In that case, I'll have to keep in mind to avoid any code you write like a > plague ;) OK, sorry, that was over the top. (In

Re: Range violation instead of empty slice on a[3 .. 2]

2015-11-21 Thread SimonN via Digitalmars-d-learn
On Sunday, 22 November 2015 at 00:24:43 UTC, Jonathan M Davis wrote: this is only an error if bounds checking is not turned on. It's a logic error regardless. you're going to have to create a wrapper. Right, I am using a wrapper, and I'm not relying on any behavior of a[3..2] during

Re: Here's looking at you, kid

2015-11-21 Thread bachmeier via Digitalmars-d
On Saturday, 21 November 2015 at 15:27:57 UTC, Johan Engelen wrote: While reading stuff on dlang.org, whenever I see something that could be improved/corrected, I try to do it immediately or add it to a small (mental) todo list. I like that it is easy to make small changes directly online.

[Issue 15370] New: Some way to manually allocate the closure for delegates to nested functions.

2015-11-21 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15370 Issue ID: 15370 Summary: Some way to manually allocate the closure for delegates to nested functions. Product: D Version: D2 Hardware: All OS: All

[Issue 15335] getSymbolsByUDA fails if type has private members

2015-11-21 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15335 bb.t...@gmx.com changed: What|Removed |Added Hardware|x86_64 |All OS|Linux

Re: Scott Meyers wants to bring default zero-initialization to C++, mentions TDPL for precedent

2015-11-21 Thread deadalnix via Digitalmars-d
On Saturday, 21 November 2015 at 07:20:07 UTC, Joakim wrote: PHP scales. This is why people use it. And this is why people will continue to use it. This is why Facebook, wikipedia, Baidu, wordpress and many others are using it. There is always a reason, and if you don't understand it, you are

Re: Compile time strings auto concatenation!?

2015-11-21 Thread Tofu Ninja via Digitalmars-d-learn
On Friday, 20 November 2015 at 20:39:58 UTC, Ilya wrote: Can DMD frontend optimize string concatenation ``` enum Double(S) = S ~ S; assert(condition, "Text " ~ Double!"+" ~ ___FUNCTION__); ``` to ``` assert(condition, "Text ++_function_name_"); ``` ? If you really want to make sure it is

Re: Release D 2.069.1

2015-11-21 Thread Thomas Mader via Digitalmars-d-announce
On Wednesday, 11 November 2015 at 12:05:16 UTC, Martin Nowak wrote: This is an unplanned point release whose sole purpose is to fix a severe Windows installer bug. http://dlang.org/download.html http://downloads.dlang.org/releases/2.x/2.069.1/ http://dlang.org/changelog/2.069.1.html

Re: Manually allocate delegate?

2015-11-21 Thread Jack Applegame via Digitalmars-d-learn
On Sunday, 12 July 2015 at 08:38:01 UTC, Tofu Ninja wrote: Is it even possible? You can use function instead delegate, and bind captured variables as struct: http://dpaste.dzfl.pl/6e23bbcfe17f auto bind(F: R function(ARGS), R, ARGS...)(F fn, ARGS args) @nogc { struct Functor {

Re: D equivalent of Python's try..else

2015-11-21 Thread Russel Winder via Digitalmars-d-learn
On Fri, 2015-11-20 at 22:39 -0800, Ali Çehreli via Digitalmars-d-learn wrote: > […] > I don't know what idiom that enables in Python but it feels to me > like > putting the statements right after the ones that could throw suffices > in > D (and Python): The else clause for while, for, try, has

[Issue 15366] Enum typed as bool behaves as bool even when cast

2015-11-21 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15366 --- Comment #2 from Lionello Lunesu --- Adding an explicit "this." fixed the issue: enum Enum : bool { A, B }; struct I{ void func(Enum e); void func2(Enum a, Enum b) {this.func(cast(Enum)(a&));} } Something happens when

[Issue 10039] std.algorithm enhancements: min, max, clamp

2015-11-21 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=10039 bb.t...@gmx.com changed: What|Removed |Added Status|NEW |RESOLVED CC|

[Issue 15371] New: __traits(getMember) should bypass the protection

2015-11-21 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15371 Issue ID: 15371 Summary: __traits(getMember) should bypass the protection Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: enhancement

[Issue 15371] __traits(getMember) should bypass the protection

2015-11-21 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15371 --- Comment #1 from bb.t...@gmx.com --- something like that: https://github.com/Blumerline/dmd/commit/53419e71b93b0870574d93cbb83ebb7ccbb5e325 or maybe change in the Scope struct the module that indicates where the template should be instantiated

[Issue 11015] BitArray.opCom is invalid on 64 bit machines

2015-11-21 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=11015 bb.t...@gmx.com changed: What|Removed |Added Status|NEW |RESOLVED CC|

  1   2   >