On Mon, Aug 17, 2020 at 12:20:24AM +, Cecil Ward via Digitalmars-d-learn
wrote:
> In a lambda, how do we know what types the arguments are? In something
> like
> (x) => x * x
It's implemented as a template, whose argument types are inferred based
on usage context.
> - there I just don’t
On Sunday, 16 August 2020 at 18:13:07 UTC, Anonymouse wrote:
On Sunday, 16 August 2020 at 10:07:02 UTC, Simen Kjærås wrote:
On Saturday, 15 August 2020 at 23:59:36 UTC, Joel wrote:
[...]
First, what's wrong with using writeln and friends instead of
directly mucking about with stdout? :p
Ju
On 8/16/20 8:27 PM, Adam D. Ruppe wrote:
On Monday, 17 August 2020 at 00:20:24 UTC, Cecil Ward wrote:
In a lambda, how do we know what types the arguments are? In something
like
(x) => x * x
In that the compiler figures it out from usage context. So if you pass
it to a int delegate(int),
On Monday, 17 August 2020 at 00:20:24 UTC, Cecil Ward wrote:
In a lambda, how do we know what types the arguments are? In
something like
(x) => x * x
In that the compiler figures it out from usage context. So if you
pass it to a int delegate(int), it will figure x must be int.
- there
In a lambda, how do we know what types the arguments are? In
something like
(x) => x * x
- there I just don’t get it at all. Can you write
(uint x) => x * x
I’m lost.
Cecil Ward.
On 8/16/20 4:53 PM, JN wrote:
Related to this thread:
https://forum.dlang.org/post/xtjzhkvszdiwvrmry...@forum.dlang.org
I don't want to hijack it with my newbie questions. What is autodecode
and why is it such a big deal? From what I've seen it's related to
handling Unicode characters? And D
On Sunday, 16 August 2020 at 20:53:41 UTC, JN wrote:
Related to this thread:
https://forum.dlang.org/post/xtjzhkvszdiwvrmry...@forum.dlang.org
I don't want to hijack it with my newbie questions. What is
autodecode and why is it such a big deal? From what I've seen
it's related to handling Uni
On Sunday, 16 August 2020 at 20:53:41 UTC, JN wrote:
Related to this thread:
https://forum.dlang.org/post/xtjzhkvszdiwvrmry...@forum.dlang.org
I don't want to hijack it with my newbie questions. What is
autodecode and why is it such a big deal? From what I've seen
it's related to handling Uni
Related to this thread:
https://forum.dlang.org/post/xtjzhkvszdiwvrmry...@forum.dlang.org
I don't want to hijack it with my newbie questions. What is
autodecode and why is it such a big deal? From what I've seen
it's related to handling Unicode characters? And D has the wrong
defaults?
On Sunday, 16 August 2020 at 10:07:02 UTC, Simen Kjærås wrote:
On Saturday, 15 August 2020 at 23:59:36 UTC, Joel wrote:
../../JMiscLib/source/jmisc/base.d(176,2): Error: @safe
function jmisc.base.upDateStatus!string.upDateStatus cannot
call @system function
std.stdio.makeGlobal!"core.stdc.stdi
On 8/16/20 6:07 AM, Simen Kjærås wrote:
On Saturday, 15 August 2020 at 23:59:36 UTC, Joel wrote:
../../JMiscLib/source/jmisc/base.d(176,2): Error: @safe function
jmisc.base.upDateStatus!string.upDateStatus cannot call @system
function std.stdio.makeGlobal!"core.stdc.stdio.stdout".makeGlobal
/Li
On Saturday, 15 August 2020 at 23:59:36 UTC, Joel wrote:
../../JMiscLib/source/jmisc/base.d(176,2): Error: @safe
function jmisc.base.upDateStatus!string.upDateStatus cannot
call @system function
std.stdio.makeGlobal!"core.stdc.stdio.stdout".makeGlobal
/Library/D/dmd/src/phobos/std/stdio.d(4837,
12 matches
Mail list logo