Hi,
Sorry for the double post. I have asked a question at
Stackoverflow regarding this :
https://stackoverflow.com/questions/42992507/get-float-value-out-of-jsonvalue-in-dlang . I have a `rating` field that might have 3 which parses to JSONValue.integer or 3.4 which parses to JSONValue.floating
On Saturday, 25 March 2017 at 02:21:33 UTC, data pulverizer wrote:
Thanks a lot ... I was half joking playing with the name
"mangling" but I appreciate your explanations and suggestions.
This is the internet, I can't tell if you're a newb or sarcastic,
and given this is a learn forum I'm going
On Saturday, 25 March 2017 at 05:20:44 UTC, Jonathan M Davis
wrote:
On Saturday, March 25, 2017 04:57:26 Yuxuan Shui via
Digitalmars-d-learn wrote:
[...]
An AliasSeq isn't really ever a type. AliasSeq!(int, float) is
a list of types, not a type itself, and is expressions supports
comparing t
On Saturday, March 25, 2017 04:57:26 Yuxuan Shui via Digitalmars-d-learn
wrote:
> I see. I always thought tuple() is a type...
>
> So a tuple of types is a type, but a tuple of mixed types and
> values is not a type. Doesn't seem very consistent.
An AliasSeq isn't really ever a type. AliasSeq!(in
On Saturday, 25 March 2017 at 04:23:31 UTC, Jonathan M Davis
wrote:
On Saturday, March 25, 2017 03:25:27 Yuxuan Shui via
Digitalmars-d-learn wrote:
In this example:
import std.range;
template expandRange(alias R) if
(isInputRange!(typeof(R))) {
static if (R.empty)
ali
On Saturday, March 25, 2017 03:25:27 Yuxuan Shui via Digitalmars-d-learn
wrote:
> In this example:
>
> import std.range;
> template expandRange(alias R) if (isInputRange!(typeof(R))) {
> static if (R.empty)
> alias expandRange = AliasSeq!();
> else
> alias e
On Sat, Mar 25, 2017 at 03:25:27AM +, Yuxuan Shui via Digitalmars-d-learn
wrote:
> In this example:
>
> import std.range;
> template expandRange(alias R) if (isInputRange!(typeof(R))) {
> static if (R.empty)
> alias expandRange = AliasSeq!();
> else
>
In this example:
import std.range;
template expandRange(alias R) if (isInputRange!(typeof(R))) {
static if (R.empty)
alias expandRange = AliasSeq!();
else
alias expandRange = AliasSeq!(R.front(),
expandRange!(R.drop(1)));
}
///
unittest {
On Friday, 24 March 2017 at 01:00:31 UTC, Nicholas Wilson wrote:
On Thursday, 23 March 2017 at 19:46:43 UTC, data pulverizer
wrote:
On Thursday, 23 March 2017 at 17:58:21 UTC, H. S. Teoh wrote:
On Thu, Mar 23, 2017 at 05:29:22PM +, data pulverizer via
Thanks. Is there a less ham-handed wa
On Thu, Mar 23, 2017 at 05:11:49PM +, Adam D. Ruppe via Digitalmars-d-learn
wrote:
> On Thursday, 23 March 2017 at 00:39:56 UTC, H. S. Teoh wrote:
> > I'm still working on that. :-)
>
> Hey, can you at least put scare quotes around "static foreach" each
> time it is used? There's no such thin
I'd like to present the following D library I am working on:
https://github.com/IllusionSoftware/COM2D
It attempts to automate COM in D.
It has some problems but does partially work. Those with a recent
version of Adobe Photoshop and an interest in COM can try it out
and make contributions if
On Thursday, 23 March 2017 at 18:10:20 UTC, Dillen Meijboom wrote:
Hi there,
I'm learning D for a while because it's really easy to use
C-code in D.
The problem is that I don't really get how to deal with the
data structures defined in C in D.
Perhaps, it will be interesting to you.
I advise
On Thursday, 23 March 2017 at 18:10:20 UTC, Dillen Meijboom wrote:
Hi there,
I'm learning D for a while because it's really easy to use
C-code in D.
The problem is that I don't really get how to deal with the
data structures defined in C in D.
D makes it easy to utilize C code, but there is
Hi,
I have been poking around with overriding internal classes, and
after reading [1] it was actually not clear to me whether it
could be done or not, so I started trying.
The good news (for me, at least) is that it can mostly be done
[2], whoever I have found a bit intriguing that I need to
14 matches
Mail list logo