When I start a new project is there anything that I should get
right from the start? Like using a specific set of compiler flags
(e.g. -dip1000)?
Is there an overview over the status of upcoming language changes
(-preview=?), e.g. what about -preview=rvaluerefparam? Should I
use it?
On Monday, 9 March 2020 at 09:42:16 UTC, GreatSam4sure wrote:
I want to know if it is possible to use typescript with the
vibe.d since typescript is a superset of javascript. I will
appreciate any example if it is possible
What do you want to do?
At least on my installation they are printed as just a pointer.
Should this just work and by box is not correctly configured or
do I need some pretty printers? If so, has someone already made
them?
On Monday, 18 May 2020 at 16:36:11 UTC, BoQsc wrote:
I'd like to have application as small as possible with a simple
Command Line Window.
I'd use that Window to output notices, log information and the
like.
Would this require GUI library and how can this be achieved?
If you do not want to cr
On Sunday, 24 May 2020 at 16:14:58 UTC, Russel Winder wrote:
On Sun, 2020-05-24 at 17:01 +0100, Russel Winder wrote:
[…]
connection.read(buffer, IOMode.once);
What an idiot I am, this call returns the read count, which
makes it fine.
Progress now being made.
I had a look. Documentation
On Monday, 25 May 2020 at 12:04:12 UTC, Russel Winder wrote:
Now I need to find out how to spawn a task that can send out
data even when the connection handler is blocked awaiting
something to read.
https://vibed.org/api/vibe.core.core/runTask ?
I have as vibe.d application that opens some websockets, reads
messages and does something with them (currently mostly writing
them to disk).
The processing happens in background threads started with
runWorkerTask, the websocket code runs as a normal task
(runTask), everything is synchronized
On Friday, 11 December 2020 at 17:32:54 UTC, Adam D. Ruppe wrote:
On Friday, 11 December 2020 at 17:29:12 UTC, Panke wrote:
But somehow my process gets signalled with USR1 and USR2 all
the time. If I do
The garbage collector uses sig usr1/2 to pause threads so it
can do its collection work.
On Friday, 11 December 2020 at 17:32:54 UTC, Adam D. Ruppe wrote:
On Friday, 11 December 2020 at 17:29:12 UTC, Panke wrote:
But somehow my process gets signalled with USR1 and USR2 all
the time. If I do
The garbage collector uses sig usr1/2 to pause threads so it
can do its collection work.
On Friday, 19 March 2021 at 07:14:46 UTC, Jack wrote:
give below template struct, how can I list the members x, y and
z? I've tried something with OriginalType and TemplateOf but no
luck... it seems if I do foo!"str1" the "str1" became "part of
type"? give .stringof from typeof(__traits(getMemb
I've updated my compiler and ran into this regression:
https://issues.dlang.org/show_bug.cgi?id=14981
Code:
---
import std.algorithm, std.container;
void main()
{
static bool compare(P a, P b)
{
return a.curColumn < b.curColumn;
}
Array!P a = mak
import std.variant, std.stdio;
---
struct NodeTypeA(T) { T[] children; }
struct NodeTypeB(T) { Tree children; }
struct Leaf(T) { T delegate() dg; }
alias Tree = Algebraic!(Leaf, NodeTypeA!This, NodeTypeB!This);
void main()
{
Tree t;
}
---
yields
tmp.d(6): Error: functions cannot return opaq
On Sunday, 8 November 2015 at 11:28:05 UTC, Jonathan M Davis
wrote:
On Sunday, November 08, 2015 10:31:11 Panke via
Digitalmars-d-learn wrote:
import std.variant, std.stdio;
---
struct NodeTypeA(T) { T[] children; }
struct NodeTypeB(T) { Tree children; }
struct Leaf(T) { T delegate() dg
On Monday, 16 March 2015 at 13:33:55 UTC, Robert burner Schadek
wrote:
... from all Unicode characters in an idiomatic D way?
(std.interal.unicode_*)
```
T genUnicodeString(T)(size_t minChars, size_t maxChars)
if(isSomeString!T) {
...
}
```
You'll need two things. A uniform distribution
On Thursday, 16 April 2015 at 19:55:53 UTC, Bayan Rafeh wrote:
How am I supposed to interpret this?
The array contains two elements. The first equals one and the
second equals two.
What happens under the hood is that Array does no provide a
toString method, instead a default is used. This
Yep, but problem is almost no one expect this, or know this. We
definitely
should do better.
How?
On Saturday, 6 June 2015 at 10:16:12 UTC, Tim K. wrote:
On Saturday, 6 June 2015 at 10:10:15 UTC, Manfred Nowak wrote:
x is not initialized.
`auto x= new Stack!(int);'
will do.
Thank you two.
But that leads me to another question: Why do I need to
initialize x with a "new Stack" but I don't
I tried it on Windows today using the latest DMD installer, all
default logger and settings.
I get: safe function [...].logImplf cannot call system function
'std.format.formattedWrite!(MsgRange, char,
Result!()).formattedWrite'
How do I make formatted logging work?
Ah, I tried to format a custom struct that has a non-pure
toString, because std.conv.to isn't pure either, sigh :(
19 matches
Mail list logo