On Thursday, 20 June 2019 at 01:32:04 UTC, matheus wrote:
import std.stdio;
import std.array;
void main(){
auto s = uninitializedArray!(float[])(100);
s[] = 0.0f;
writeln(s[0]);
}
another version:
auto arr = new double[ 10 ];
writeln( arr[5] ); // NaN
arr.length += 10;
writeln(
On Tuesday, 18 June 2019 at 12:26:14 UTC, lili wrote:
Hi guys:
Is the Dlang fix-length array alloc on stack? when a test
writeln([1]).sizeof //16
writeln([2]).sizeof //16
Why, What is the fix-length array memory layout.
You are quite confused...
[...] is an array literal, not a
Thanks Matheus, thats what i needed.
I added a PR to mention this function in the language
documentation about arrays.
On Wednesday, 19 June 2019 at 19:25:59 UTC, Jonathan M Davis
wrote:
Aside from looking through the newsgroup/forum for discussions
on DIPs, that's pretty much all you're going to find on that.
Andrei's talk is the most up-to-date information that we have
about this particular DIP.
The prel
On Thursday, 20 June 2019 at 06:20:17 UTC, dangbinghoo wrote:
hi there,
a funny thing:
$ cat rgcc
#!/bin/sh
cf=$@
mycf=__`echo $cf|xargs basename`
cat $cf | sed '1d' > ${mycf}
gcc ${mycf} -o a.out
rm ${mycf}
./a.out
$ cat test.c
#!/home/user/rgcc
#include
int
On Thursday, 20 June 2019 at 06:20:17 UTC, dangbinghoo wrote:
hi there,
a funny thing:
$ cat rgcc
#!/bin/sh
cf=$@
mycf=__`echo $cf|xargs basename`
cat $cf | sed '1d' > ${mycf}
gcc ${mycf} -o a.out
rm ${mycf}
./a.out
$ cat test.c
#!/home/user/rgcc
#include
int
Hello!
Is there any trait or Phobos function for transforming a
function/delegate/lambda/whatever's body into a string suitable
for `mixin(...)`? For example:
---
__traits(getBody, (int a, int b) => a + b); // returns "(int a,
int b) => a + b"
// o
On Thursday, 20 June 2019 at 19:09:11 UTC, Emmanuelle wrote:
Hello!
Is there any trait or Phobos function for transforming a
function/delegate/lambda/whatever's body into a string suitable
for `mixin(...)`? For example:
---
__traits(getBody, (int a, int b) => a + b); // returns "(int a,
int
On Thursday, 20 June 2019 at 19:09:11 UTC, Emmanuelle wrote:
Is there any trait or Phobos function for transforming a
function/delegate/lambda/whatever's body into a string suitable
for `mixin(...)`? For example:
See:
https://forum.dlang.org/post/kozwskltzidfnatbp...@forum.dlang.org
If not,
On Tuesday, 18 June 2019 at 09:42:41 UTC, aliak wrote:
On Tuesday, 18 June 2019 at 01:15:54 UTC, Samir wrote:
On Monday, 17 June 2019 at 03:46:11 UTC, Norm wrote:
That's because you're using write*ln*. So even though line is
empty, you still output a new line.
Curious. I am going to have to
If you never herd about Meson before:
🤔. https://mesonbuild.com/
I am wondering as to what options are available for a Meson build
user when unit testing?
What I am trying todo is simply rewrite my C17 project reference
templates to D versions so I may show other developers the basic
structu
Am I mistaken in saying that we are conflating:
"anything that is logically const should be declared const"
// makes perfect sense
// e.g. the lowest 2, and some branches of the 3rd and 4th,
levels
// of members (and a subset of the overall methods) in a
5-deep type hierarchy are con
12 matches
Mail list logo