On 2017-11-23 12:55, sarn wrote:
+1 to using integer arithmetic for the low-level time APIs.
and nobody is advocating to change this.
it is about being able to use such result (duration) with non-time
focused libraries/functions (eg. general maths/stats) expecting doubles.
if this is not
string a = |q{
firstLine();
if (cond) {
secondLine()
}
};
you could write your own string processing function according to your
needs to filter the code string, and use it like
string a = inject(q{...})
On 2017-08-11 13:00, Mr. Pib wrote:
How can one include external files such as glade, icons, images that are
static in nature in to the binary but not require extraction on program
run to be used?
gtk's builder doesn't seem to take an in memory representation of glade
files and building a
i see you didn't hold your horses... not sure if i should reply again to
such an angry rant. i will stay calm and focused though.
It's not! I've used nntp and it crap. You cannot edit your posts, simple
as that!
so i give you that. unfortunately, your long rant offers no other
argument.
On 2017-08-04 12:13, Johnson Jones wrote:
No, sorry. The lead team uses nttp which is old school forum technology.
They won't move in to the present and instead insist everyone else stay
in the past with them. It's sort of like those guys that drive 1970's
camaro's because they think it makes
tried the 'check for new messages every 2 minutes' hotfix suggestion
(was set to 10), but it does not help in my case.
correction: this seems to help quite a bit, got only one connection
refused since.
When I try to select a new unread message to read, I've got roughly a
10% or so chance that it'll fail with a "The connection was refused when
attempting to contact news.digitalmars.com:119."
same here, started several weeks ago, very annoying.
i have used the same local config/settings for
as i just happened to have me mutilated, i couldn't resist (even though
the example 'works' only with DMD-m64 bullets):
being forced to share your foot among parallel universes, it will surely
find a stray bullet in one of them.
can you guess which toe is going to be blown off?
'''
On Friday, 8 April 2016 at 09:50:52 UTC, Atila Neves wrote:
On Thursday, 7 April 2016 at 05:41:06 UTC, E.S. Quinn wrote:
__traits(allMembers, ) has always been pretty much
essential to any non-trivial struct, class, or module-based
introspection, but given the visibility rules changes in
the way import declarations work has changed quite a bit with 2.071. two
aspects have been written up nicely by steve schveighoffer (
http://www.schveiguy.com/blog/2016/03/import-changes-in-d-2-071 ).
breaking as they might be for some, they are (a) a mere enforcement of
the rules as they were
Author here. I originally thought the issue was that an 'imported' scope
imports are not considered anymore.
this is exactly what i was/am afraid of ...[see below]
As Walter explained in this issue and in
https://issues.dlang.org/show_bug.cgi?id=15966 this behaviour changed to
prevent
the changelog to 2.071.1 lists 15925 as a fixed regression, and
https://issues.dlang.org/show_bug.cgi?id=15925
lists it as "RESOLVED FIXED"
however, the issue as originally submitted still exists in 2.071.1.
so what is going on?
for me as a non-core dev it is difficult to get the gist of the
On 2016-06-29 14:39, Hiemlick Hiemlicker wrote:
Yes, the C standard requires malloc to be aligned to the platform size(4
for 32bit, 8 for 64-bit).
just what i was hopping for. thanks!
is there an alignment guarantee for core.stdc.stdlib.malloc?
more specifically, using DMD and compiling for 32bit on windows, can i
assume proper alignment for int or uint variables?
background: i like to re-use a (ubyte) buffer, sometimes it will store
only bytes, sometimes it shall store
On 2016-06-20 06:33, moe wrote:
I see where I went wrong. I thought that it's possible to only use the
.lib file without the source code of dbar. Having access to the source
makes what I am trying somewhat pointless. Is it otherwise possible to
provide some functionality without having to give
string cssPath = "test.css";
CssProvider provider = new CssProvider();
provider.loadFromPath(cssPath);
unfortunately i don't know anything about yr specific problem.
but i just wanted to mention (in case you are not aware of it) that the
CSS can be embedded into
On 2016-06-16 00:29, rikki cattermole wrote:
Honestly? I read the source for Phobos even with a internet connection
quite often. So having it not included isn't an issue there, but spec is.
real programmers do ...
well, i do sometimes too. but i rather regard myself as an average user,
while
As long as pdf is still being generated I see no reason to not drop it.
Cost vs benefit.
not sure what pdf you are referring to.
https://dlang.org/dlangspec.pdf ? - this is only the language spec. the
chm contains the whole website incl phobos documentation, compiler
options, articles and
It's a huge maintenance effort for us to produce the chm files.
...
So I'm wondering if in 2016 someone really needs an offline copy of a
website shipped with a binary release?
i am very glad the chm file exists whenever i am not online, e.g. on a
plane or train (free wifi is not a given
On 2016-05-20 07:49, Era Scarecrow wrote:
Experimented and quickly got what looks like good clean results. Took
your code, ripped out what I didn't want and added in what I did. Simple!
https://dpaste.dzfl.pl/6952fdf463b66
i am most curious about your solution.
why does printAll() has a
On 2016-04-18 14:12, Tofu Ninja wrote:
Also is there a way to have a named substructure, not a nested structure
but something to just add an additional name, maybe something like
struct a{
struct{
int x;
int y;
int z;
} b;
}
not sure what you mean by "named
On 2015-11-12 11:18, Nemanja Boric wrote:
On Tuesday, 10 November 2015 at 10:01:24 UTC, Shriramana Sharma wrote:
I prefer 3. It's simple, but effective. The graphic looks like an Olympic torch
to me, which is good, indicating that D is a champion! :-)
On 2015-11-04 03:30, Andrei Alexandrescu wrote:
Reply to this with 1.1, 1.2, 2, or 3:
3
more BJM related
http://www.amazon.com/Declare-Nothing-Parks-Anton-Newcombe/dp/B00WZXX2NC
sorry, emailer(me) malfunction. pls ignore
On 2015-03-27 16:47, Mike Wey wrote:
On 03/27/2015 10:27 PM, captaindet wrote:
On 2015-03-26 17:41, Mike Wey wrote:
GtkD is a D binding and OO wrapper of Gtk+ and is released on the LGPL
license.
Shortly after the last release, GtkD has been updated for GTK+ 3.16.
GtkD 3.1.0 is now available
On 2015-03-26 17:41, Mike Wey wrote:
GtkD is a D binding and OO wrapper of Gtk+ and is released on the LGPL
license.
Shortly after the last release, GtkD has been updated for GTK+ 3.16.
GtkD 3.1.0 is now available on gtkd.org:
http://gtkd.org/download.html
great news - thanks for your
On 2015-03-10 18:05, jollie wrote:
On Tue, 10 Mar 2015 15:41:54 -0500, captaindet wrote:
thanks a lot, jollie, for the detailed description. i tried as advised,
the shell output was a bit different than in your example, i guess
because i installed the 32 bit version and your example was
On 2015-03-08 22:23, jollie wrote:
captaindet2k...@gmx.net Wrote in message:
can you point me to a DL of 3.14 for windows?
I have been using msys2. The mingw-w64 ports work
well and include an x86 and x86_64 version.
jollie
and it also allows using the latest version of glade!
/det
On 2015-03-10 10:56, jollie wrote:
On Mon, 09 Mar 2015 13:48:54 -0500, captaindet wrote:
thanks for the info. however, i am not familiar with this project. to be
honest, it is not quite clear to me what MSYS2 is good for or who would need
it. the dox are very slim. so before i dig too deep
On 2015-03-08 22:23, jollie wrote:
captaindet2k...@gmx.net Wrote in message:
can you point me to a DL of 3.14 for windows?
I have been using msys2. The mingw-w64 ports work
well and include an x86 and x86_64 version.
jollie
thanks for the info. however, i am not familiar with this
On 2015-03-07 15:14, Mike Wey wrote:
I'm glad to announce the first GtkD release that makes use of the new gir based
generator.
The generator was rebuild from the ground up since the old one was no longer
usable with the new GTK+ documentation.
For a list of changes see the changelog:
On 2015-02-26 10:07, Steven Schveighoffer wrote:
Static data I believe is always scanned conservatively because no
type information is stored for it ever, even on allocation (i.e.
program startup).
ouh, the confusion goes on... are you saying that
{
// will be all scanned by GC for
On 2015-02-26 12:07, Steven Schveighoffer wrote:
On 2/26/15 11:57 AM, captaindet wrote:
On 2015-02-26 10:07, Steven Schveighoffer wrote:
Static data I believe is always scanned conservatively because no
type information is stored for it ever, even on allocation (i.e.
program startup).
ouh,
On 2015-02-25 20:45, H. S. Teoh via Digitalmars-d-learn wrote:
On Wed, Feb 25, 2015 at 08:20:37PM -0600, captaindet via Digitalmars-d-learn
wrote:
[...]
struct Stuff2Do{
static ubyte[1024*1024] buffer4speed = void; // even if untyped at this
point
// more
}
[...]
Tangential note
On 2015-02-25 19:24, Adam D. Ruppe wrote:
does this warning only apply to dynamic void[] arrays but not to static
void[CTconstant] arrays?
Both of those will be scanned for pointers.
thanks, adam,
so i should always use
struct Stuff2Do{
static ubyte[1024*1024] buffer4speed = void; //
if i understand correctly, static arrays are exempt from GC scanning for memory
pointers
http://dlang.org/garbage.html : Pointers in D can be broadly divided into two categories: Those that point to garbage collected memory, and those that do not. Examples of the latter are pointers created by
On 2015-02-03 05:05, Daniel Murphy wrote:
Walter Bright wrote in message news:maq8ao$2idu$1...@digitalmars.com...
Yup. I understand the concern that a compiler would opt out of
inlining those if it legally could, but I just cannot see that
happening in reality. Modern compilers have been
hi,
i just run into a (wrong code gen?) bug that manifests itself only under
certain conditions.
before i file it, i'd like to know if it is still around in the latest DMD
version and/or if other platforms and 64bit code is affected as well.
bug description:
std.algorithm.countUntil fails to
On 2014-06-12 14:20, captaindet wrote:
before i file it, i'd like to know if it is still around in the
latest DMD version and/or if other platforms and 64bit code is
affected as well.
thanks andrew, philippe,
i had the suspicion that it is a windows only problem anyway because the only
On 2014-06-12 17:27, Rene Zwanenburg wrote:
On Thursday, 12 June 2014 at 22:14:23 UTC, captaindet wrote:
On 2014-06-12 14:20, captaindet wrote:
before i file it, i'd like to know if it is still around in the
latest DMD version and/or if other platforms and 64bit code is
affected as well.
hi,
i stumbled upon something weird - it looks like a bug to me but maybe it is a
feature that is unclear to me.
so i know i can declare function and delegate pointers at module level.
for function pointers, i can initialize with a lambda.
BUT for delegates i get an error - see below
i found
On 2014-06-02 08:08, Marc Schütz schue...@gmx.net wrote:
On Monday, 2 June 2014 at 06:56:54 UTC, captaindet wrote:
hi,
i stumbled upon something weird - it looks like a bug to me but
maybe it is a feature that is unclear to me.
so i know i can declare function and delegate pointers at module
On 2014-06-02 08:03, MrSmith wrote:
On Monday, 2 June 2014 at 06:56:54 UTC, captaindet wrote:
hi,
i stumbled upon something weird - it looks like a bug to me but maybe it is a
feature that is unclear to me.
so i know i can declare function and delegate pointers at module level.
for function
On 2014-06-02 08:08, Marc Schütz schue...@gmx.net wrote:
On Monday, 2 June 2014 at 06:56:54 UTC, captaindet wrote:
hi,
i stumbled upon something weird - it looks like a bug to me but maybe it is a
feature that is unclear to me.
so i know i can declare function and delegate pointers at module
On 2014-06-02 08:08, Marc Schütz schue...@gmx.net wrote:
On Monday, 2 June 2014 at 06:56:54 UTC, captaindet wrote:
hi,
i stumbled upon something weird - it looks like a bug to me but
maybe it is a feature that is unclear to me.
so i know i can declare function and delegate pointers at module
On 2014-06-02 09:57, Steven Schveighoffer wrote:
On Mon, 02 Jun 2014 10:37:07 -0400, captaindet 2k...@gmx.net wrote:
On 2014-06-02 08:03, MrSmith wrote:
On Monday, 2 June 2014 at 06:56:54 UTC, captaindet wrote:
hi,
i stumbled upon something weird - it looks like a bug to me but
maybe it is
On 2014-05-09 04:46, Mason McGill wrote:
On Friday, 9 May 2014 at 04:09:46 UTC, captaindet wrote:
by coincidence, i have use for this too. also thought __traits(allMembers, ...)
would work. too bad it doesn't. is this a bug or expected behavior?
/det
Just out of curiosity, what's your use
On 2014-05-08 13:28, Yuriy wrote:
Hello D community,
What do you think of a new __traits(getImports, Scope), that returns a tuple of strings, which are
imports made in a scope? If scope is a module, it will produce a tuple like (std.conv,
std.traits).
by coincidence, i have use for this too.
On 2014-04-18 09:04, Aleksandar Ruzicic wrote:
So, what do you guys think?
i like it.
50 matches
Mail list logo