Am 27.02.13 21:36, schrieb Dicebot:
For anything even remotely complex I would have probably chosen JSON,
either new std.json pending for review (not current std.json!) or
vibe.data.json from vibed.org project.
Which std.json are you referring to? There is no std.json2 or something
in the
Hi,
I am struggling with understanding this behavior. In the code
below, the function getVec is called 8 times, but it should be
called only 4 times (once for each call inside of map).
Any explanations?
Stephan
import std.stdio;
import std.algorithm;
import std.array;
int[] getVec(size_t
On Tuesday, 12 March 2013 at 17:43:43 UTC, bearophile wrote:
Stephan Schiffels:
I am struggling with understanding this behavior. In the code
below, the function getVec is called 8 times, but it should
be called only 4 times (once for each call inside of map).
Any explanations?
Maybe it's
Am 12.03.13 20:22, schrieb Timon Gehr:
On 03/12/2013 06:51 PM, Stephan Schiffels wrote:
...
Thanks, I had a brief look at std.algorithm.joiner but couldn't find
anything obvious, maybe I should look deeper into it.
...
I guess it is because of the following:
Eg (similar code occurs two
Hi,
this code crashes with a segfault. I need help to understand what
might be wrong with it.
import std.array;
import std.algorithm;
void main() {
auto names = [file1.txt, file2.txt, file3.txt]; // let
these files exist
auto files = names.map!(f = File(f, r))().array();
}
Thanks,
On Wednesday, 22 May 2013 at 11:09:49 UTC, John Colvin wrote:
On Wednesday, 22 May 2013 at 11:07:39 UTC, bearophile wrote:
Stephan Schiffels:
this code crashes with a segfault. I need help to understand
what might be wrong with it.
import std.array;
import std.algorithm;
void main() {
auto
Hi,
I have some problems with adopting my code to a breaking change
introduced in version 2.063. Apparently, now it's not anymore
possible to instantiate an immutable object via:
auto object = new immutable(SomeClass)(contructor_args...);
without also defining either
On Thursday, 13 June 2013 at 12:29:57 UTC, Simen Kjaeraas wrote:
On Thu, 13 Jun 2013 14:17:22 +0200, Stephan Schiffels
stephan_schiff...@mac.com wrote:
For example, is there a way of instantiating an object
normally (i.e. mutable), and then later freeze it to
immutable via a simple cast
Hi,
I'd like a version of std.range.chunk that does not require the
range to have the length property.
As an example, consider a file that you would like parse by lines
and always lump together four lines, i.e.
import std.stdio;
void main() {
auto range = File(test.txt, r).byLine();
On Wednesday, 30 October 2013 at 20:43:54 UTC, qznc wrote:
On Wednesday, 30 October 2013 at 00:20:12 UTC, Stephan
Schiffels wrote:
Hi,
I'd like a version of std.range.chunk that does not require
the range to have the length property.
As an example, consider a file that you would like parse
On Thursday, 31 October 2013 at 10:35:54 UTC, Stephan Schiffels
wrote:
On Wednesday, 30 October 2013 at 20:43:54 UTC, qznc wrote:
On Wednesday, 30 October 2013 at 00:20:12 UTC, Stephan
Schiffels wrote:
Hi,
I'd like a version of std.range.chunk that does not require
the range to have
On Thursday, 13 February 2014 at 17:41:37 UTC, monarch_dodra
wrote:
On Thursday, 13 February 2014 at 14:45:44 UTC, bearophile wrote:
Stephan Schiffels:
It would be actually easy to implement chunks without the
save function, by using an internal buffer, which would
however make
Hi,
I am using dmd with version: DMD64 D Compiler v2.065-devel-db2a73d
My program throws a custom exception with a custom error message
at some point. The stack trace (below) is very uninformative. Is
there a way to output the function names of each position in the
stack?
I already compile
Ah nice. That worked. Thanks!
2014-07-08 9:25 GMT+02:00 JR via Digitalmars-d-learn
digitalmars-d-learn@puremagic.com:
On Tuesday, 8 July 2014 at 07:11:26 UTC, Stephan Schiffels wrote:
Hi,
I am using dmd with version: DMD64 D Compiler v2.065-devel-db2a73d
My program throws a custom
14 matches
Mail list logo