On Thursday, 6 February 2020 at 22:00:26 UTC, tchaloupka wrote:
On Wednesday, 5 February 2020 at 13:05:59 UTC, Eko Wahyudin
wrote:
Hi all,
I'm create a small (hallo world) application, with DMD.
But my program create 7 annoying threads when create an empty
class.
If you don't want the para
On 07/02/2020 8:53 AM, uranuz wrote:
Is it also possible to set some custom thread name for GC threads in
order to be distinguishable from other threads in utilities like `htop`?
It would be handy...
https://dlang.org/phobos/core_thread_osthread.html#.Thread.name.2
import std.conv: to;
string str = "test1";
wstring[] wstr = [to!wstring(str)];
On Wednesday, 5 February 2020 at 13:05:59 UTC, Eko Wahyudin wrote:
Hi all,
I'm create a small (hallo world) application, with DMD.
But my program create 7 annoying threads when create an empty
class.
If you don't want the parallel sweep enabled for your app, you
can turn it of ie with:
`
On Thursday, 6 February 2020 at 21:53:08 UTC, Marcone wrote:
How to converte "string" to wstring[] in Dlang?
You don't, generally. A string can be converted to a wstring, but
a wstring[] is a very different thing.
import std.conv;
wstring s = to!wstring(some_string);
note that works for mo
How to converte "string" to wstring[] in Dlang?
Is it also possible to set some custom thread name for GC threads
in order to be distinguishable from other threads in utilities
like `htop`? It would be handy...
On Thursday, 6 February 2020 at 16:29:57 UTC, Steven
Schveighoffer wrote:
On 2/6/20 11:05 AM, mark wrote:
src/package.d(50,35): Error: no property opCall for type
diffrange.Diff!(dchar[]), did you mean new Diff!(dchar[])?
Hah, forgot that it's a class. Yes, I DID mean new Diff ;)
-Steve
Wow
On 2/6/20 11:05 AM, mark wrote:
src/package.d(50,35): Error: no property opCall for type
diffrange.Diff!(dchar[]), did you mean new Diff!(dchar[])?
Hah, forgot that it's a class. Yes, I DID mean new Diff ;)
-Steve
On Thursday, 6 February 2020 at 15:21:46 UTC, Steven
Schveighoffer wrote:
[snip]
3. You should declare constraints signifying what types are
valid. i.e.:
class Diff(T) if (
isForwardRange!T // it's a forward range
&& is(typeof(T.init.front == T.init.front)) // elements are
comparable
)
On 2/6/20 10:11 AM, Steven Schveighoffer wrote
b.step(); // virtual call, calls B.step
I meant, calls A.step;
-Steve
On 2/6/20 7:16 AM, mark wrote:
I am starting on porting Python's difflib's sequence matcher to D.
I want to have a class that will accept two ranges whose elements are of
the same type and whose elements can be compared for equality.
How do I make a class declaration that specifies a (forward
On 2/6/20 8:05 AM, Mihail Lorenko wrote:
On Thursday, 6 February 2020 at 12:37:01 UTC, Adam D. Ruppe wrote:
On Thursday, 6 February 2020 at 12:15:17 UTC, Mihail Lorenko wrote:
B* b;
A pointer to a class is a rare thing in B since they are already
automatic references. Just use `B b;` and
On Tuesday, 4 February 2020 at 10:17:39 UTC, Dennis wrote:
C++ has a const system that is closer to D's than any other
language, but it still has huge differences:
Thanks, that clears it up a bit!
I forgot to mention: I want the class to work with:
Diff(aForwardRange, bForwardRange)
where T = ForwardRange, E = anything that supports ==
A common use case is for two sequences of strings (i.e., lines
read from two files).
Diff(aString, bString) where
T = char[] or wchar[] or dchar[] E = ch
On Thursday, 6 February 2020 at 12:37:01 UTC, Adam D. Ruppe wrote:
On Thursday, 6 February 2020 at 12:15:17 UTC, Mihail Lorenko
wrote:
B* b;
A pointer to a class is a rare thing in B since they are
already automatic references. Just use `B b;` and ten `b = a`
will just work.
Thanks for
On Thursday, 6 February 2020 at 12:15:17 UTC, Mihail Lorenko
wrote:
B* b;
A pointer to a class is a rare thing in B since they are already
automatic references. Just use `B b;` and ten `b = a` will just
work.
Hello!
Interested in a question.
Object "A" inherited object "B". And you need to return the
object link "B". Is this possible in this language? Here is an
example:
class B
{
protected int a;
public void step() {};
}
class A : B
{
public override step()
{
import std.random
I am starting on porting Python's difflib's sequence matcher to D.
I want to have a class that will accept two ranges whose elements
are of the same type and whose elements can be compared for
equality.
How do I make a class declaration that specifies a (forward)
range type and an equality-s
Hello folks,
Are there any well-established CI patterns/tools for detecting
unneeded imports in D code? Ideally including detecting unused
symbols from selective imports?
Thanks and best wishes,
-- Joe
On Saturday, 1 February 2020 at 10:35:52 UTC, seany wrote:
Hi
I want to start a small server, that will be accessible form
outside. Not a huge deal right?
Not quite.
My machine: 4.15.0-66-generic #75-Ubuntu SMP Tue Oct 1 05:24:09
UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
DMD : DMD64 D Compile
On Saturday, 1 February 2020 at 10:35:52 UTC, seany wrote:
Hi
I want to start a small server, that will be accessible form
outside. Not a huge deal right?
Not quite.
My machine: 4.15.0-66-generic #75-Ubuntu SMP Tue Oct 1 05:24:09
UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
DMD : DMD64 D Compile
22 matches
Mail list logo