On Wednesday, 7 July 2021 at 13:49:50 UTC, MoonlightSentinel
wrote:
On Wednesday, 7 July 2021 at 10:27:47 UTC, notna wrote:
On Windows:
[...]
Nice and helpful Error messages is on the top of our desires
list, right?
It's hard to give proper error backtraces without debug
information (-g).
On Wednesday, 7 July 2021 at 11:54:39 UTC, z wrote:
On 64 bits you don't even get a stack trace or description.
Sad, i know.
If you want better i could recommend you to compile with `-g`
and hook up a debugger, then just let it run and it should
triger a breakpoint on 0xC009(access
On Wednesday, 7 July 2021 at 12:07:26 UTC, rikki cattermole wrote:
With ldc you can turn on address sanitizer which will give you
that information (and a LOT more!) without a debugger (but you
still need -g).
http://johanengelen.github.io/ldc/2017/12/25/LDC-and-AddressSanitizer.html
On Monday, 5 July 2021 at 15:08:45 UTC, MoonlightSentinel wrote:
On Monday, 5 July 2021 at 14:57:20 UTC, BoQsc wrote:
Let's say I can't store information into files.
Is it possible to download a file into an array.
Yes, use
[`get`](https://dlang.org/phobos/std_net_curl.html#.get):
```d
On Tuesday, 21 July 2020 at 13:05:21 UTC, wjoe wrote:
On Sunday, 19 July 2020 at 09:48:24 UTC, notna wrote:
Someone once wrote about a UDP library, which was used to sync
data to somewhere in APAC (Hongkong?) and by doing so the data
transfer was magnitudes faster then before (over TCP)...
On Saturday, 18 July 2020 at 16:00:09 UTC, Dukc wrote:
I have a project where I need to take and send UDP packets over
the Internet. Only raw UDP - my application uses packets
directly, with their starting `[0x5a, packet.length.to!ubyte]`
included. And only communication with a single address,
On Friday, 1 May 2020 at 19:25:43 UTC, Steven Schveighoffer wrote:
Nice! Yeah, I was sloppy in my newsgroup coding, sorry.
One minor nit here, the to!(dchar[])(word.dup), the dup is not
necessary, you are going to end up allocating a temporary array
and throwing it away.
Just do
On Friday, 1 May 2020 at 15:17:53 UTC, drug wrote:
01.05.2020 18:04, notna пишет:
hmmm, whích results in:
Error: cannot use [] operator on expression of type dchar
try this:
```D
import std;
void main()
{
string word = "Привет";
dchar[] line3 = to!(dchar[])(word.dup) // make a
On Friday, 1 May 2020 at 15:15:29 UTC, bachmeier wrote:
On Friday, 1 May 2020 at 15:04:01 UTC, notna wrote:
On Friday, 1 May 2020 at 12:29:26 UTC, Steven Schveighoffer
wrote:
dchar[] line3 = sort(line2.to!(dchar[]));
dchar[] line3 = sort(line2.to!dchar[]).release;
On Friday, 1 May 2020 at 12:29:26 UTC, Steven Schveighoffer wrote:
dchar[] line3 = sort(line2.to!(dchar[]));
dchar[] line3 = sort(line2.to!dchar[]).release;
https://dlang.org/phobos/std_range.html#.SortedRange.release
hmmm, whích results in:
Error: cannot use [] operator on
On Tuesday, 17 October 2017 at 15:02:29 UTC, Adam D. Ruppe wrote:
Or try this newest commit
https://github.com/adamdruppe/arsd/blob/master/terminal.d and
see if it works better for you.
- Here is what I use in one of my tools... and I never had
problems with German password so far ;)
On Saturday, 6 May 2017 at 07:21:51 UTC, Johannes Pfau wrote:
Am Mon, 01 May 2017 21:01:43 +
schrieb notna :
Hi Dlander's.
Found some interesting reads ([1] [2] [3]) about the $SUBJECT
and wonder if there is anything available in the Dland?!
If yes,
Hi Dlander's.
Found some interesting reads ([1] [2] [3]) about the $SUBJECT and
wonder if there is anything available in the Dland?!
If yes, pls. share.
If not, how could it be done (D'ish)
[1] -
https://moinakg.wordpress.com/2013/06/22/high-performance-content-defined-chunking/
-
On Saturday, 10 December 2016 at 13:25:13 UTC, Nicholas Wilson
wrote:
On Saturday, 10 December 2016 at 13:21:40 UTC, notna wrote:
Those statements need to be inside a function.
Feel free to post a working example or, even better, a pull
request with one ;)
On Saturday, 10 December 2016 at 08:03:00 UTC, biozic wrote:
This would do the same. I wouldn't say it's a trick.
import std.format : formattedRead;
import std.stdio : writefln;
string ipAddr = "192.168.1.54";
int a, b, c, d;
formattedRead(ipAddr, "%d.%d.%d.%d", , , , );
On Thursday, 6 October 2016 at 09:23:19 UTC, pineapple wrote:
On Thursday, 6 October 2016 at 09:17:08 UTC, pineapple wrote:
On Wednesday, 5 October 2016 at 19:30:01 UTC, Jonathan M Davis
wrote:
Would just like to point out that this is design weirdness
on Phobos' part - the library I've been
On Friday, 27 May 2016 at 12:26:19 UTC, Andrew Edwards wrote:
http://ftp.dlang.org/ctg/implib.html
The above URL suggests that, on Windoze, I can create a D
compatible lib from a dll file by issuing the command:
[...]
If you haven't done so, you need to copy your resulting LIB file
to
Cool,thanks.
Btw., there could be more special chars to encode...replace
beside :... like / @ and so on... see also
http://www.cyberciti.biz/faq/unix-linux-export-variable-http_proxy-with-special-characters/
for the background
Regards
notna
On Friday, 3 October 2014 at 11:13:11 UTC, Marc
Thanks Ali.
As always, your examples and explanations are amazingly clear and
easy to understand.
On Monday, 15 September 2014 at 23:57:59 UTC, Ali Çehreli wrote:
You must make use of the returned value to slice your wstring.
Something like this (not compiled):
auto actualLength =
Thanks AsmMan,
Found
http://msdn.microsoft.com/en-us/library/windows/desktop/ms724432%28v=vs.85%29.aspx
and with your help, now understand :)
The syntax below prints a blank after my username, so the slice
seems a bit too long :O So my final solution looks like:
module main;
import
Hi all.
somehow, for me, the following is against the DMD philosophy,
because this code builds successfully with DMD and the executable
gives the expected result... but also the below strange
messages...
CODE:
-
module main;
import std.stdio;
import std.c.windows.windows;
how about return? :)
there is also assert... and pls note, scope could also be your
friend :O
On Monday, 15 September 2014 at 23:36:56 UTC, AsmMan wrote:
Someone said somewhere that call std.c.process.exit() isn't the
proper way to exit from a D program since it doesn't terminate
some
btw., thats the only thing I found for the given error... which
is +10years old:
http://forum.dlang.org/thread/ccto20$18bq$1...@digitaldaemon.com
On Monday, 15 September 2014 at 23:36:53 UTC, notna wrote:
Hi all.
...
OUTPUT incl. ERROR:
-
I had the same problem just now... on Win8.1 with
- DMD32 D Compiler v2.066.0
- DUB version 0.9.21
The workaround is to manually update the dub.json file of your
project, which was written from dub init, to the latest vibe-d
info on http://code.dlang.org/packages/vibe-d;, so
dependencies:
24 matches
Mail list logo