On Tuesday, 19 May 2020 at 22:04:49 UTC, MaoKo wrote:
Hello. I just want to find what is exactly the difference
between:
alias _ = void function(int);
alias void _(int);
Because it's seem that the latter can't be used in the
declaration of an array (eg: _[] ...).
I think the first is a pointer
On Tuesday, 19 May 2020 at 10:29:51 UTC, wjoe wrote:
On Tuesday, 19 May 2020 at 10:08:37 UTC, user1234 wrote:
On Tuesday, 19 May 2020 at 10:01:34 UTC, wjoe wrote:
[...]
It has no purpose. In D many attributes are allowed even if
they have no meaning.
D-Scanner checks this kind of stuff, to s
On Tuesday, 19 May 2020 at 23:15:45 UTC, realhet wrote:
Hi,
I was able to reach all the fields in a subclass using foreach
and BaseClassesTuple, but is there a way to do this using
functional programming primitives, but in compile time for
tuples?
private template FieldNameTuple2(T) {
enu
On Tuesday, 19 May 2020 at 22:01:03 UTC, Vinod K Chandran wrote:
Hi all,
Is it possible to write some class members in another module ?
I have class with a lot of member variables.(probably 50+) I
would like to write them (Not all, but some of them) in a
special module for the sake of maintena
Hi,
I was able to reach all the fields in a subclass using foreach
and BaseClassesTuple, but is there a way to do this using
functional programming primitives, but in compile time for tuples?
private template FieldNameTuple2(T) {
enum FieldNameTuple2 = BaseClassesTuple!T.map!(S =>
FieldNam
On Thursday, 14 May 2020 at 19:01:25 UTC, H. S. Teoh wrote:
On Wed, May 13, 2020 at 12:26:21PM +, realhet via
Digitalmars-d-learn wrote:
Thank You, very helpful!
On Tuesday, 19 May 2020 at 22:01:03 UTC, Vinod K Chandran wrote:
Is it possible to write some class members in another module ?
You can make some of members be other structs that you aggregate
together.
Hi all,
Is it possible to write some class members in another module ? I
have class with a lot of member variables.(probably 50+) I would
like to write them (Not all, but some of them) in a special
module for the sake of maintenance.
Hello. I just want to find what is exactly the difference between:
alias _ = void function(int);
alias void _(int);
Because it's seem that the latter can't be used in the
declaration of an array (eg: _[] ...).
I think the first is a pointer to function and the second is a
function type itself bu
On Tuesday, 19 May 2020 at 20:51:01 UTC, Luis wrote:
So, I'm writing my own implementation of sparse sets, and I
take as reference emsi_containers for allocator usage. I saw
that they have disabled postblit operator... But i don't
understand exactly why. In special, when they implement
InputRa
So, I'm writing my own implementation of sparse sets, and I take
as reference emsi_containers for allocator usage. I saw that they
have disabled postblit operator... But i don't understand exactly
why. In special, when they implement InputRange over the
containers, but having disabled postblit,
On 5/18/20 9:18 PM, Ali Çehreli wrote:
On 5/18/20 1:11 PM, BoQsc wrote:> I'm trying to kill my own process, but
I'm being unsuccessful at the
> compilation of the program. It seems that neither getpid nor
> thisProcessID returns a correct type value for the kill function.
Of course, Adam D. R
On Thursday, 14 May 2020 at 08:02:28 UTC, Dennis wrote:
On Thursday, 14 May 2020 at 06:08:17 UTC, Vinod K Chandran
wrote:
On Thursday, 14 May 2020 at 06:05:00 UTC, Vinod K Chandran
wrote:
Hi all,
I wrote a class and in VS Code, DScanner says that the class
is undocumented. How can i document a
On Monday, 18 May 2020 at 14:28:33 UTC, Steven Schveighoffer
wrote:
What you need is to normalize the data for comparison:
https://dlang.org/phobos/std_uni.html#normalize
For more reference:
https://en.wikipedia.org/wiki/Combining_character
-Steve
I checked it again but could not reprodu
On Tuesday, 19 May 2020 at 10:08:37 UTC, user1234 wrote:
On Tuesday, 19 May 2020 at 10:01:34 UTC, wjoe wrote:
[...]
It has no purpose. In D many attributes are allowed even if
they have no meaning.
D-Scanner checks this kind of stuff, to some extent, but not
the compiler.
Thank you.
On Tuesday, 19 May 2020 at 10:01:34 UTC, wjoe wrote:
As I was reading a few source files of a library I found dozens
of final struct declarations like this:
final struct Foo {
const pure final nothrow bar() { ... }
}
What's this supposed to express ?
A final class is a class that can't be
As I was reading a few source files of a library I found dozens
of final struct declarations like this:
final struct Foo {
const pure final nothrow bar() { ... }
}
What's this supposed to express ?
A final class is a class that can't be subclassed - structs can't
be subclassed, so does th
On Monday, 18 May 2020 at 20:00:51 UTC, BoQsc wrote:
I'm kind of stuck right now on how.
Some more Updates and it seems that it is impossible to scroll
the history of the output.
import std.stdio : write, writeln, readln, writefln;
import std.process : spawnShell, wait, executeShell, ki
On Monday, 18 May 2020 at 20:40:47 UTC, Adam D. Ruppe wrote:
On Monday, 18 May 2020 at 20:11:25 UTC, BoQsc wrote:
I'm trying to kill my own process
Don't kill yourself, just `return` from main.
Returning does what I need, however I still need to get a working
example on killing/terminating
On Monday, 18 May 2020 at 14:28:33 UTC, Steven Schveighoffer
wrote:
On 5/18/20 9:44 AM, Martin Tschierschke wrote:
[...]
using == on strings is going to compare the exact bits for
equality. In unicode, things can be encoded differently to make
the same grapheme. For example, ö is a code unit
On Monday, 18 May 2020 at 14:22:31 UTC, WebFreak001 wrote:
[...]
It solved the problem, but what is the right way to use
umlauts (encode them) inside the program?
Your code should have already worked like that, assuming your
input file is a UTF-8 file. Check with an editor like Notepad++
or V
On Mon, 2020-05-18 at 11:56 +, Sebastiaan Koppe via Digitalmars-d-learn
wrote:
> On Thursday, 14 May 2020 at 09:36:33 UTC, Russel Winder wrote:
> > Whilst C frameworks use callbacks and trampolines, high level
> > languages seem to be basing things on futures – or things that
> > are effectiv
22 matches
Mail list logo