Re: std.net.curl get json_encode

2020-10-09 Thread Vino via Digitalmars-d-learn
On Friday, 9 October 2020 at 05:30:34 UTC, ikod wrote: On Friday, 9 October 2020 at 01:45:37 UTC, Vino wrote: On Friday, 2 October 2020 at 23:20:48 UTC, Imperatorn wrote: On Friday, 2 October 2020 at 21:12:09 UTC, Vino wrote: Hi All, ... auto content = https.perform(); https.shutdown;

Re: How auto convert Variant to required function arguments?

2020-10-09 Thread Ferhat Kurtulmuş via Digitalmars-d-learn
On Friday, 9 October 2020 at 15:49:31 UTC, Ferhat Kurtulmuş wrote: On Friday, 9 October 2020 at 00:19:20 UTC, Marcone wrote: How auto convert Variant to required function arguments? import std.variant; import std.stdio; Variant a; int mul2(Variant b){    int c = *b.peek!(int);    return

Re: Is there a way to force emitting of stack frame for a specific function?

2020-10-09 Thread Johan via Digitalmars-d-learn
On Friday, 9 October 2020 at 02:01:30 UTC, Andrey Zherikov wrote: The question: is it possible to tell compiler to always generate stack frame for my stackFrame function? "pragma(inline, false)" doesn't help here - the result is completely the same. (Do you mean a stack frame, or a frame

Re: std.net.curl get json_encode

2020-10-09 Thread Andre Pany via Digitalmars-d-learn
On Friday, 9 October 2020 at 05:56:05 UTC, Vino wrote: On Friday, 9 October 2020 at 05:30:34 UTC, ikod wrote: On Friday, 9 October 2020 at 01:45:37 UTC, Vino wrote: On Friday, 2 October 2020 at 23:20:48 UTC, Imperatorn wrote: On Friday, 2 October 2020 at 21:12:09 UTC, Vino wrote: Hi All,

Re: How auto convert Variant to required function arguments?

2020-10-09 Thread Ferhat Kurtulmuş via Digitalmars-d-learn
On Friday, 9 October 2020 at 00:19:20 UTC, Marcone wrote: How auto convert Variant to required function arguments? import std.variant; import std.stdio; Variant a; int mul2(Variant b){    int c = *b.peek!(int);    return 2*c; } int mul3(int b){ return 3*b; } void main() {    a = 5;

Re: How auto convert Variant to required function arguments?

2020-10-09 Thread Ferhat Kurtulmuş via Digitalmars-d-learn
On Friday, 9 October 2020 at 16:10:03 UTC, Ferhat Kurtulmuş wrote: On Friday, 9 October 2020 at 15:49:31 UTC, Ferhat Kurtulmuş wrote: On Friday, 9 October 2020 at 00:19:20 UTC, Marcone wrote: How auto convert Variant to required function arguments? import std.variant; import std.stdio;

Docs generation example

2020-10-09 Thread Виталий Фадеев via Digitalmars-d-learn
Wanted! Docs generation example. I have dub project, sources/*.d. I want html-index with all classes/functions. Is exists simple, hi-level, one-line command line solution ?

How do I use translation module in vibe.d?

2020-10-09 Thread jack via Digitalmars-d-learn
Documentation[1] tells to use @translationModule!TranslationContext on class, like this: @translationModule!TranslationContext class WebInterface { ... but it return the error: Error: template instance translationModule!(TranslationContext) does not match template declaration

Re: Docs generation example

2020-10-09 Thread Anonymouse via Digitalmars-d-learn
On Saturday, 10 October 2020 at 02:07:02 UTC, Виталий Фадеев wrote: Wanted! Docs generation example. I have dub project, sources/*.d. I want html-index with all classes/functions. Is exists simple, hi-level, one-line command line solution ? dub run adrdox -- -i sources Files will be in