On Wednesday, 30 November 2022 at 03:04:47 UTC, Basile B. wrote:
Essentially slices are only useful to be consumed locally,
typically
```d
while mySlice.length do
{
slice = slice[1..$];
}
```
sorry I cant force push, it was obviously meant to be written as
```d
while mySlice.length do
{
On Wednesday, 2 June 2021 at 15:32:38 UTC, Sean wrote:
Hello
I have seen this :
https://forum.dlang.org/thread/1473526717.1917.20.ca...@winder.org.uk
Now, please consider this code:
import std.stdio;
import std.math;
import std.stdio;
import std.conv;
import std.format;
import std.math;
imp
On Wednesday, 2 June 2021 at 15:59:38 UTC, Basile.B wrote:
On Wednesday, 2 June 2021 at 15:32:38 UTC, Sean wrote:
works as you expect
On Wednesday, 2 June 2021 at 15:59:38 UTC, Basile.B wrote:
```d
import std;
void main() {
auto a = new double[][] (0,0);
a ~= [ 1.0, 2.45];
a ~= [
On Wednesday, 2 June 2021 at 16:08:14 UTC, Sean wrote:
On Wednesday, 2 June 2021 at 15:59:38 UTC, Basile.B wrote:
works as you expect
Okey, so I have to copy every (N-1) dimensional element - one
after one - if the array is N dimensional, with N > 1, and
repeat it for every element if they t
On Wednesday, 2 June 2021 at 16:50:16 UTC, Gavin Ray wrote:
On Wednesday, 2 June 2021 at 16:07:35 UTC, Basile.B wrote:
works a expected. The reason why is that your array elements
are fat pointers, so when you dup a, you dup some fats
pointer, so you got the same elements as "a" but accessible
On Sunday, 8 August 2021 at 23:04:32 UTC, Marcone wrote:
How to divide by space keeping words with spaces inside quotes?
Exanple:
string text = "Duck Cat \"Carl Rivers\" Dog";
I want split to:
["Duck", "Cat", "Carl Rivers", "Dog"]
ATENTION: I DON'T WANT:
["Duck", "Cat", "Carl", "Rivers", "
On Monday, 9 August 2021 at 04:19:05 UTC, Basile.B wrote:
On Sunday, 8 August 2021 at 23:04:32 UTC, Marcone wrote:
How to divide by space keeping words with spaces inside quotes?
Exanple:
string text = "Duck Cat \"Carl Rivers\" Dog";
I want split to:
["Duck", "Cat", "Carl Rivers", "Dog"]
A
On Friday, 4 January 2019 at 09:54:25 UTC, Jacob Shtokolov wrote:
Hi,
I'd like to implement some compile time constraints for a
struct (though not sure if that's possible).
I already tried to place "static assert" or any kind of static
condition into a body of @property and opAssign(), but e
On Wednesday, 24 April 2019 at 07:53:47 UTC, Andrey wrote:
Hi all,
Do you know can we detect that some argument of a function can
be handled in CT?
For example:
int value1 = 10;
someFunction(value1);
int value2 = getValueFromUserInput();
someFunction(value2);
void someFunction(int arg)
{