On 2/10/2024 6:01 PM, matheus via Digitalmars-d-learn wrote:
On Saturday, 10 February 2024 at 22:11:48 UTC, Brad Roberts wrote:
Back when I was doing lots of software developer interviews, one of my
frequent questions involved date math. This wasn't because it's
difficult from a coding
Back when I was doing lots of software developer interviews, one of my
frequent questions involved date math. This wasn't because it's
difficult from a coding standpoint, but that it's NOT a coding problem.
The key part of the question is realization that it's a requirements
question. The
On 9/8/2023 12:59 AM, rempas via Digitalmars-d-learn wrote:
u64 _cap = 0; // Total amount of elements (not bytes) we can
this._ptr = cast(T*)malloc(size);
I'm pretty sure this is your problem. You're allocating size bytes
which is only going to work where sizeof(T) == 1. Changing to
On 5/28/2017 6:46 PM, Brad Roberts via Digitalmars-d-learn wrote:
Here's the bug that I'm digging into today, a clear example of an api
that _should_ be pure, but based on the implementation is rather
difficult for the compiler to infer.
https://issues.dlang.org/show_bug.cgi?id=17442
On 5/28/2017 6:36 PM, Jonathan M Davis via Digitalmars-d-learn wrote:
On Sunday, May 28, 2017 17:53:25 Brad Roberts via Digitalmars-d-learn wrote:
On 5/28/2017 5:34 PM, Jonathan M Davis via Digitalmars-d-learn wrote:
On Sunday, May 28, 2017 16:49:16 Brad Roberts via Digitalmars-d-learn
wrote
28, 2017 16:49:16 Brad Roberts via
Digitalmars-d-learn wrote:
Is there a mechanism for declaring something pure when it's
built from
parts which individually aren't?
string foo(string s)
{
// do something arbitrarily complex with s that doesn't
touch
globals or change global state except
On 5/28/2017 6:01 PM, Stefan Koch via Digitalmars-d-learn wrote:
On Monday, 29 May 2017 at 00:53:25 UTC, Brad Roberts wrote:
On 5/28/2017 5:34 PM, Jonathan M Davis via Digitalmars-d-learn wrote:
On Sunday, May 28, 2017 16:49:16 Brad Roberts via
Digitalmars-d-learn wrote:
Is there a mechanism
On 5/28/2017 5:34 PM, Jonathan M Davis via Digitalmars-d-learn wrote:
On Sunday, May 28, 2017 16:49:16 Brad Roberts via Digitalmars-d-learn wrote:
Is there a mechanism for declaring something pure when it's built from
parts which individually aren't?
string foo(string s)
{
// do
Is there a mechanism for declaring something pure when it's built from
parts which individually aren't?
string foo(string s)
{
// do something arbitrarily complex with s that doesn't touch
globals or change global state except possibly state of the heap or gc
return s;
}
I've been marking the accounts as spam and moving the bugs to a specific
spam product/category. The last few days have been unusual. If it
keeps up, I'll investigate ways of potentially dealing with it better,
but I really don't want to add friction to the signup process. It's
hard enough
On 1/22/2016 9:10 AM, Chris Wright via Digitalmars-d-learn wrote:
On Fri, 22 Jan 2016 08:36:14 +, Kagamin wrote:
Should be possible. Why not?
Because almost no IO routines in Phobos are marked @safe, which implies
that it's difficult in practice or that people simply haven't done it. I
On 9/12/15 9:20 AM, Adam D. Ruppe via Digitalmars-d-learn wrote:
On Saturday, 12 September 2015 at 09:47:55 UTC, Jacob Carlborg wrote:
Well, if your D function doesn't use anything of the runtime I guess it's not
necessary.
Right. If you don't call into the threading system in the druntime,
On 4/25/2015 10:02 PM, Timo Sintonen via Digitalmars-d-learn wrote:
-Import mess. Phobos files import several other files. Some of them
cannot be used. Work is going on to remove unnecessary imports and use
scoped imports. It is important that imports for unittests are only in
unittest blocks.
Valgrind has a mechanism for teaching it how to ignore certain patterns.
A long time ago I setup suppressions for the gc, but the code has
changed out from under that version so the work would need to be redone.
On 4/20/2015 7:23 PM, Martin Nowak via Digitalmars-d-learn wrote:
On Monday, 20
While snprintf might be one thing that provides to be an interesting
obstacle, the better answer to why std.conv.to isnt pure is that no one
has invested the time to work through issues like that to make it so.
It _should_ be pure.
On 2/14/2015 12:32 PM, ketmar via Digitalmars-d-learn wrote:
The one that the win64 auto-tester uses is here:
http://downloads.dlang.org/other/
curl-7.28.1-devel-rainer.win64.zip
There's a newer one available there, but I can't vouch for it.
On 6/26/14, 11:49 AM, Andrei Alexandrescu via Digitalmars-d-learn wrote:
On 6/26/14, 11:11 AM, Mark
16 matches
Mail list logo