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 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"]
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 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 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
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 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;
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)
{
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
On Thursday, 3 January 2019 at 20:38:44 UTC, Michelle Long wrote:
On Wednesday, 2 January 2019 at 23:41:41 UTC, Basile wrote:
So the big new is that the tooling is now at 100% 64 bit under
windows (DCD, D-Scanner, D-AST-worx and of course the IDE),
which is a milestone i waited since several
On Thursday, 3 January 2019 at 17:23:52 UTC, steven kladitis
wrote:
On Wednesday, 2 January 2019 at 23:41:41 UTC, Basile wrote:
So the big new is that the tooling is now at 100% 64 bit under
windows (DCD, D-Scanner, D-AST-worx and of course the IDE),
which is a milestone i waited since several
On Monday, 15 October 2018 at 21:26:52 UTC, solidstate1991 wrote:
I have done two mistakes: I underestimated the scope of the
project and overestimated my capabilities. This caused a chain
reaction, which in turn made the first milestone unreachable.
At the same time, my sleep disorder became
https://github.com/BBasile/IsItThere
https://issues.dlang.org/show_bug.cgi?id=15901
when you want bro ;)
I've read latest months several related topics (multiple alias
this, super struct, etc). But the problem is that these solutions
still differ from a real interface and they don't solve the
problem of casting the interface at run-time (with arbitrary
parameters).
I'll expose another approach.
14 matches
Mail list logo