On Monday, 20 August 2018 at 16:16:04 UTC, Sebastiaan Koppe wrote:
Hey, I am trying to get UDAs from a doubly nested struct, to no
avail:
code
---
import std.traits : hasUDA;
enum hover;
struct Style {
struct Root {
auto margin = "10px";
auto backgroundColor = "white";
@hover
On Sunday, 19 August 2018 at 07:18:20 UTC, Sean O'Connor wrote:
How to I phrase RIP addressing in assembly under Linux AMD64 in
D. I can't seem to figure it out.
Normally I do something like:
movq rax,rndphi[rip]
Where rndphi is a label pointing to data.
I know I have change movq to mov in
On Friday, 17 August 2018 at 19:28:47 UTC, Basile B. wrote:
Now that -m64 + LLD + MINGW works, the question is obvious.
The background idea is of course to allow the use of GDB under
Windows. At first glance the debug info API is not uniform.
This is visible if you compare dmd.backend.dwarf
On Friday, 17 August 2018 at 19:45:35 UTC, Andre Pany wrote:
On Friday, 17 August 2018 at 19:35:40 UTC, Basile B. wrote:
On Friday, 17 August 2018 at 19:28:47 UTC, Basile B. wrote:
Now that -m64 + LLD + MINGW works, the question is obvious.
The background idea is of course to allow the use of
On Friday, 17 August 2018 at 19:28:47 UTC, Basile B. wrote:
Now that -m64 + LLD + MINGW works, the question is obvious.
The background idea is of course to allow the use of GDB under
Windows. At first glance the debug info API is not uniform.
This is visible if you compare dmd.backend.dwarf
Now that -m64 + LLD + MINGW works, the question is obvious.
The background idea is of course to allow the use of GDB under
Windows. At first glance the debug info API is not uniform. This
is visible if you compare dmd.backend.dwarf and dmd.backend.cgcv
and the naive idea which would be to
On Friday, 17 August 2018 at 06:38:59 UTC, Joakim wrote:
By our very own BBasile of Coedit fame:
https://lambdahackers.com/@b4asile/why-d-is-a-good-choice-for-writing-a-toy-language-4vapyvas5a
I was surprised to see how well received was this reddit post.
Initially i've written it to test a
On Tuesday, 7 August 2018 at 07:33:49 UTC, Nicholas Wilson wrote:
so the following
void foo(As...)(As as)
in
{
static foreach (a ;as)
assert(a>0);
}
do
{
}
void main()
{
foo(1,2,3,4,5);
}
passes and compiles, whereas
void foo(As...)(As as)
static foreach (a ;as)
in(a>0)
{
}
On Sunday, 5 August 2018 at 01:48:08 UTC, Yuxuan Shui wrote:
file1.d:
import std.stdio;
file2.d:
import file1;
pragma(msg, __traits(getProtection, __traits(getMember, m1,
"std"))); // public
pragma(msg, __traits(getProtection, m1.std)); // private
Bug? Intended?
reported for you
On Sunday, 5 August 2018 at 01:48:08 UTC, Yuxuan Shui wrote:
file1.d:
import std.stdio;
file2.d:
import file1;
pragma(msg, __traits(getProtection, __traits(getMember, m1,
"std"))); // public
pragma(msg, __traits(getProtection, m1.std)); // private
Bug? Intended?
It's a bug since in both
On Saturday, 4 August 2018 at 02:39:23 UTC, Mike Franklin wrote:
Cool! Can we now deprecate and eventually jettison C/C++
bindings from druntime, please?
And drop completion call tips etc at the same time...
On Wednesday, 25 July 2018 at 15:56:50 UTC, Anonymouse wrote:
I'm trying to build my project with -allinst, after reading the
comments of issue 18026[1]. Manjaro/Arch 64-bit, dmd 2.081.1
and ldc 1.0.0.
I get a wall of text with linker errors, both with dmd and ldc.
Demangled excerpt:
[...]
On Monday, 9 July 2018 at 11:10:01 UTC, Basile B. wrote:
On Monday, 9 July 2018 at 10:56:18 UTC, Andre Pany wrote:
On Monday, 9 July 2018 at 10:38:54 UTC, Basile B. wrote:
On Monday, 9 July 2018 at 10:33:03 UTC, Andre Pany wrote:
Hi, no it's not correct i think, right translation would be
On Monday, 9 July 2018 at 10:56:18 UTC, Andre Pany wrote:
On Monday, 9 July 2018 at 10:38:54 UTC, Basile B. wrote:
On Monday, 9 July 2018 at 10:33:03 UTC, Andre Pany wrote:
Hi, no it's not correct i think, right translation would be
extern(C) void GetParamNames(const char** paramNames,
On Monday, 9 July 2018 at 10:33:03 UTC, Andre Pany wrote:
Hi,
I need to call a C function within a DLL which has following
signature:
void GetParamNames (const char *paramNames[], size_t
numParams);
The purpose of this function is to return a list of texts
I defined in D:
extern(C)
On Sunday, 8 July 2018 at 21:26:14 UTC, 12345swordy wrote:
On Sunday, 8 July 2018 at 21:20:27 UTC, Basile B. wrote:
On Sunday, 8 July 2018 at 20:58:54 UTC, 12345swordy wrote:
I don't see it anywhere in the std.traits library nor in the
default compiler traits. This shouldn't be difficult to
On Sunday, 8 July 2018 at 20:58:54 UTC, 12345swordy wrote:
I don't see it anywhere in the std.traits library nor in the
default compiler traits. This shouldn't be difficult to
implemented them in the std.traits library isn't it?
-Alexander
hello, look at
__traits(getProtection)[1] in the
On Saturday, 7 July 2018 at 02:21:31 UTC, solidstate1991 wrote:
I'll upload code tomorrow, but here's the premise:
Sometimes elements disappear from associative arrays, causing
all sorts of errors down the line, mostly access violations.
Hello, what you describe makes me think to what
On Friday, 6 July 2018 at 21:47:34 UTC, JN wrote:
On Friday, 6 July 2018 at 03:19:44 UTC, Seb wrote:
Why should I add my project to the Project Tester?
--
Once a project is added to the Project Tester, DMD can't
regress on it anymore as for
On Thursday, 5 July 2018 at 13:41:23 UTC, Andrea Fontana wrote:
My vote for this one :)
For lazy people https://issues.dlang.org/show_bug.cgi?id=13300
On Thursday, 5 July 2018 at 09:45:44 UTC, Basile B. wrote:
On Wednesday, 4 July 2018 at 14:37:49 UTC, Timon Gehr wrote:
On 24.06.2018 13:27, Basile B. wrote:
FYI this works fine, as expected it's just some small parser
changes.
I didn't touch to for and foreach for now. I think that
On Wednesday, 4 July 2018 at 14:37:49 UTC, Timon Gehr wrote:
On 24.06.2018 13:27, Basile B. wrote:
FYI this works fine, as expected it's just some small parser
changes.
I didn't touch to for and foreach for now. I think that
SwitchStatement is a candidate too.
On Thursday, 5 July 2018 at 00:00:07 UTC, Chris M. wrote:
On Sunday, 1 July 2018 at 12:04:06 UTC, Basile B. wrote:
I've recently ported libfirm to D.
This nice C library, developed at the Karlsruhe university,
allows to build compiler back-ends, using the SSA intermediate
representation.
On Sunday, 1 July 2018 at 15:03:30 UTC, ketmar wrote:
Basile B. wrote:
I've recently ported libfirm to D.
great news and great work, thank you. yet i must admit that
wrapping != porting.
Right, i have used the wrong words. Title hopefully is not
ambiguous.
On Wednesday, 4 July 2018 at 10:09:27 UTC, Basile B. wrote:
On Wednesday, 4 July 2018 at 10:03:57 UTC, Martin Nowak wrote:
Glad to announce D 2.081.0.
This release comes with...
http://dlang.org/download.html
http://dlang.org/changelog/2.081.0.html
- -Martin
thx, keep on "git gud".
On Wednesday, 4 July 2018 at 10:03:57 UTC, Martin Nowak wrote:
Glad to announce D 2.081.0.
This release comes with...
http://dlang.org/download.html
http://dlang.org/changelog/2.081.0.html
- -Martin
thx, keep on "git gud".
On Monday, 25 June 2018 at 12:19:15 UTC, aliak wrote:
On Monday, 25 June 2018 at 10:38:49 UTC, Basile B. wrote:
On Monday, 25 June 2018 at 10:36:46 UTC, Basile B. wrote:
On Sunday, 24 June 2018 at 23:08:15 UTC, aliak wrote:
Wow nice, that was quick, would it be much more to make it
so that
On Monday, 2 July 2018 at 07:12:47 UTC, Basile B. wrote:
On Monday, 2 July 2018 at 06:21:53 UTC, Tony wrote:
On Sunday, 13 September 2015 at 16:26:04 UTC, Jacob Carlborg
wrote:
I just released a new version of DVM, 0.4.4. The most
important
I am on Windows 10. Is:
dvm --latest install
a
On Monday, 2 July 2018 at 06:21:53 UTC, Tony wrote:
On Sunday, 13 September 2015 at 16:26:04 UTC, Jacob Carlborg
wrote:
I just released a new version of DVM, 0.4.4. The most important
I am on Windows 10. Is:
dvm --latest install
a valid way to get the latest dmd? When I try that I get an
On Sunday, 1 July 2018 at 14:23:36 UTC, Yuxuan Shui wrote:
On Sunday, 1 July 2018 at 11:55:17 UTC, Jonathan M Davis wrote:
On Sunday, July 01, 2018 11:36:51 Yuxuan Shui via
Digitalmars-d wrote:
[...]
The entire reason that package.d was added as a feature was so
that modules could be split
On Sunday, 1 July 2018 at 15:03:30 UTC, ketmar wrote:
Basile B. wrote:
I've recently ported libfirm to D.
great news and great work, thank you. yet i must admit that
wrapping != porting. for a moment you made my heart stopped,
'cause i thought that i wasted alot of time trying to do a
I've recently ported libfirm to D.
This nice C library, developed at the Karlsruhe university,
allows to build compiler back-ends, using the SSA intermediate
representation.
In theory it could even be used to make a new D compiler version,
e.g "FDC", although this is obviously of no
On Sunday, 1 July 2018 at 06:55:35 UTC, Robert M. Münch wrote:
On 2018-06-30 22:53:47 +, Jerry said:
Btw this is pretty much std.algorithm.each
import std.algorithm;
void main() {
auto cs = [ new C(), new C() ];
cs.each!(o => o.A());
}
On Saturday, 30 June 2018 at 00:16:49 UTC, Basile B. wrote:
On Friday, 29 June 2018 at 16:44:36 UTC, Robert M. Münch wrote:
I hope this is understandable... I have:
class C {
void A();
void B();
void C();
}
I'm iterating over a set of objects of class C like:
On Friday, 29 June 2018 at 16:44:36 UTC, Robert M. Münch wrote:
I hope this is understandable... I have:
class C {
void A();
void B();
void C();
}
I'm iterating over a set of objects of class C like:
foreach(obj; my_selected_objs){
...
}
The iteration and code
On Thursday, 28 June 2018 at 08:01:42 UTC, vino.B wrote:
Hi All,
Request your help on how to get the source code, i wrote a
program named clean.d, complied it and by mistake deleted the
source code(clean.d), so can we get back the source using the
complied program(clean), if yes, can you
On Wednesday, 27 June 2018 at 15:27:09 UTC, Steven Schveighoffer
wrote:
On 6/27/18 6:22 AM, Vijay Nayar wrote:
Does this mean that the `alias other aliasName;` syntax is
preferred, or does it simply mean that this is a low priority
issue that hasn't been addressed yet?
IIRC, there was an
On Wednesday, 27 June 2018 at 14:29:18 UTC, Basile B. wrote:
On Wednesday, 27 June 2018 at 14:23:25 UTC, Uknown wrote:
On Wednesday, 27 June 2018 at 14:01:06 UTC, Basile B. wrote:
[...]
You can use this syntax for functions :
`alias proto_identifier = void function();`
Nah it's not the
On Wednesday, 27 June 2018 at 14:23:25 UTC, Uknown wrote:
On Wednesday, 27 June 2018 at 14:01:06 UTC, Basile B. wrote:
On Wednesday, 27 June 2018 at 12:25:26 UTC, Uknown wrote:
On Wednesday, 27 June 2018 at 10:22:38 UTC, Vijay Nayar wrote:
[...]
aliasing a function type only works with the
On Wednesday, 27 June 2018 at 12:25:26 UTC, Uknown wrote:
On Wednesday, 27 June 2018 at 10:22:38 UTC, Vijay Nayar wrote:
Most of the documentation at
https://dlang.org/spec/declaration.html#alias uses examples of
the form: `alias aliasName = other;`, where `aliasName`
becomes the new name to
On Tuesday, 26 June 2018 at 02:20:37 UTC, Manu wrote:
On Mon, 25 Jun 2018 at 19:10, Manu wrote:
Some code:
-
struct Entity
{
enum NumSystems = 4;
struct SystemData
{
uint start, length;
}
SystemData[NumSystems] systemData;
@property uint
On Sunday, 24 June 2018 at 23:08:15 UTC, aliak wrote:
On Sunday, 24 June 2018 at 11:27:12 UTC, Basile B. wrote:
On Saturday, 23 June 2018 at 06:24:29 UTC, Basile B. wrote:
On Saturday, 23 June 2018 at 06:18:53 UTC, user1234 wrote:
On Saturday, 23 June 2018 at 05:09:13 UTC, aedt wrote:
On
On Monday, 25 June 2018 at 10:36:46 UTC, Basile B. wrote:
On Sunday, 24 June 2018 at 23:08:15 UTC, aliak wrote:
On Sunday, 24 June 2018 at 11:27:12 UTC, Basile B. wrote:
On Saturday, 23 June 2018 at 06:24:29 UTC, Basile B. wrote:
On Saturday, 23 June 2018 at 06:18:53 UTC, user1234 wrote:
On
On Saturday, 23 June 2018 at 06:24:29 UTC, Basile B. wrote:
On Saturday, 23 June 2018 at 06:18:53 UTC, user1234 wrote:
On Saturday, 23 June 2018 at 05:09:13 UTC, aedt wrote:
On Saturday, 23 June 2018 at 04:45:07 UTC, user1234 wrote:
On Saturday, 23 June 2018 at 01:27:30 UTC, aedt wrote:
for
On Sunday, 24 June 2018 at 08:30:28 UTC, Jacob Carlborg wrote:
On 2018-06-23 14:34, Tobias Müller wrote:
AFAIK the if and else branches in Rust always have to be
enclosed in curly
braces because of this.
I don't remember the exact ambiguity though.
There's an ambiguity between the condition
On Sunday, 24 June 2018 at 06:56:42 UTC, Russel Winder wrote:
I think this question on Quora could do with some quality
answers.
https://www.quora.com/unanswered/How-is-the-D-programming-language-being-used
Why don't you write the quality answer you expect ? I see you're
registered on
On Saturday, 23 June 2018 at 14:06:08 UTC, Basile B. wrote:
On Saturday, 23 June 2018 at 01:58:31 UTC, DigitalDesigns wrote:
Is there any idiomatic undo designs in D that give a more
natural implementation than the standard techniques?
- The "stuff to undo" can be a forward range ("save"
On Saturday, 23 June 2018 at 01:58:31 UTC, DigitalDesigns wrote:
Is there any idiomatic undo designs in D that give a more
natural implementation than the standard techniques?
- The "stuff to undo" can be a forward range ("save" primitive, +
assignable from a stored state)
- The manager can
On Saturday, 23 June 2018 at 12:17:08 UTC, biocyberman wrote:
I get the same output with or without "g" flag at line 6:
https://run.dlang.io/is/9n7iz6
So I don't understand when I have to use "g" flag.
My bet is that Regex results in D are lazy so "g" doesn't make
sense in this context
On Saturday, 23 June 2018 at 12:50:17 UTC, biocyberman wrote:
On Saturday, 23 June 2018 at 12:20:10 UTC, biocyberman wrote:
I got "Error: undefined identifier flags" in here:
https://run.dlang.io/is/wquscz
Removing "flags =" works.
I kinda found an answer. It's a bit of a surprise anyway:
On Saturday, 23 June 2018 at 06:18:53 UTC, user1234 wrote:
On Saturday, 23 June 2018 at 05:09:13 UTC, aedt wrote:
On Saturday, 23 June 2018 at 04:45:07 UTC, user1234 wrote:
On Saturday, 23 June 2018 at 01:27:30 UTC, aedt wrote:
for line in stdin.lines() {}
if condition {}
while condition {}
On Wednesday, 20 June 2018 at 08:16:21 UTC, Mike Parker wrote:
This is the feedback thread for the first round of Community
Review for DIP 1015, "Deprecation and removal of implicit
conversion from integer and character literals to bool":
On Sunday, 17 June 2018 at 04:42:26 UTC, Martin Nowak wrote:
Glad to announce the first beta for the 2.081.0 release, ♥ to
the 52 contributors for this release.
http://dlang.org/download.html#dmd_beta
http://dlang.org/changelog/2.081.0.html
As usual please report any bugs at
On Friday, 15 June 2018 at 23:04:40 UTC, Sjoerd Nijboer wrote:
For someone coming from a C# background there is some seemingly
simple syntactic sugar missing from D.
* The null conditional operator `?.`
Yeah, me too. I have to say that at least D is expressive enough
to allow the safeAccess
On Saturday, 16 June 2018 at 00:24:42 UTC, DigitalDesigns wrote:
space is ignored! Seems like a bug std . traits . std . string
is valid?
No, it's not a bug. Tokens are so. Try to write a grammar and a
lexer, you'll understand that this makes sense.
https://run.dlang.io/is/5YxAwR
On Friday, 15 June 2018 at 13:34:32 UTC, Temtaime wrote:
On Friday, 15 June 2018 at 13:30:53 UTC, Basile B. wrote:
On Friday, 15 June 2018 at 12:17:03 UTC, Temtaime wrote:
https://issues.dlang.org/show_bug.cgi?id=18993
Please, maybe someone fix and backport it to stable
Works for me w/ 2.081
On Friday, 15 June 2018 at 13:30:53 UTC, Basile B. wrote:
On Friday, 15 June 2018 at 12:17:03 UTC, Temtaime wrote:
https://issues.dlang.org/show_bug.cgi?id=18993
Please, maybe someone fix and backport it to stable
Works for me w/ 2.081 but fails with dmd ~master.
whoops phobos ~master i
On Friday, 15 June 2018 at 12:17:03 UTC, Temtaime wrote:
https://issues.dlang.org/show_bug.cgi?id=18993
Please, maybe someone fix and backport it to stable
Works for me w/ 2.081 but fails with dmd ~master.
On Friday, 15 June 2018 at 11:24:42 UTC, Basile B. wrote:
On Friday, 15 June 2018 at 11:15:03 UTC, Andrea Fontana wrote:
Check this code:
https://run.dlang.io/is/PoluHI
It won't work, because array appender requires a pure postblit.
Why? Can we remove this limitation?
Andrea
Hello, i've
On Friday, 15 June 2018 at 11:15:03 UTC, Andrea Fontana wrote:
Check this code:
https://run.dlang.io/is/PoluHI
It won't work, because array appender requires a pure postblit.
Why? Can we remove this limitation?
Andrea
Hello, i've tested locally and it can works by making
On Wednesday, 13 June 2018 at 09:07:21 UTC, ToRuSer wrote:
On Wednesday, 13 June 2018 at 06:46:43 UTC, Mike Franklin wrote:
I had a little fun today kicking the crap out of C's memcpy
with a D implementation.
https://github.com/JinShil/memcpyD
Request for help: I don't have a Linux system
On Wednesday, 13 June 2018 at 06:45:27 UTC, Gokhhy wrote:
Is there a way to define an entire module as @nogc or otherwise
make it so I don't have to qualify every single function as
@nogc?
---
module module_wide-nogc;
@nogc:
/*
declarations or statements...
*/
---
But this is not
On Monday, 11 June 2018 at 19:05:21 UTC, Basile B. wrote:
On Monday, 11 June 2018 at 16:37:05 UTC, Basile B. wrote:
Russel Winder, "Shove" and finally myself, have encountered a
strange linker error with almost always the same symbols
related to a template instance...
See:
-
On Tuesday, 12 June 2018 at 15:42:50 UTC, Bauss wrote:
On Tuesday, 12 June 2018 at 14:37:19 UTC, ag0aep6g wrote:
On Tuesday, 12 June 2018 at 13:40:45 UTC, bauss wrote:
See the following: https://run.dlang.io/is/uQ21PH
(I have tried with allMembers too.)
It's like it won't pick up the member
On Monday, 11 June 2018 at 16:37:05 UTC, Basile B. wrote:
Russel Winder, "Shove" and finally myself, have encountered a
strange linker error with almost always the same symbols
related to a template instance...
See:
-
On Monday, 11 June 2018 at 18:29:07 UTC, Johannes Pfau wrote:
Am Mon, 11 Jun 2018 16:37:05 + schrieb Basile B.:
Russel Winder, "Shove" and finally myself, have encountered a
strange linker error with almost always the same symbols
related to a template instance...
See:
-
Russel Winder, "Shove" and finally myself, have encountered a
strange linker error with almost always the same symbols related
to a template instance...
See:
-
https://forum.dlang.org/post/mailman.855.1526549201.29801.digitalmars-d-...@puremagic.com
-
On Monday, 11 June 2018 at 13:47:41 UTC, Luís Marques wrote:
On Monday, 11 June 2018 at 13:39:22 UTC, Basile B. wrote:
the FQN is working here but i find the first message a bit
confuse. Not sure if this small runnable represents the issue ?
---
module runnable;
import std.stdio,
On Monday, 11 June 2018 at 13:19:17 UTC, Simen Kjærås wrote:
On Monday, 11 June 2018 at 12:59:01 UTC, Mike Franklin wrote:
On Monday, 11 June 2018 at 12:38:33 UTC, Luís Marques wrote:
Just to check. If you have a piece of code like
"foo.bar.baz", you can get the full hierarchy, for instance
On Monday, 11 June 2018 at 03:34:59 UTC, Basile B. wrote:
On Monday, 11 June 2018 at 01:03:16 UTC, Mike Franklin wrote:
[...]
- default win32 OMF:
https://github.com/DigitalMars/dmc/blob/master/src/core/MEMCCPY.C
- default linux:
https://github.com/gcc-mirror/gcc/blob/master/libgcc/memcpy.c
On Monday, 11 June 2018 at 03:34:59 UTC, Basile B. wrote:
On Monday, 11 June 2018 at 01:03:16 UTC, Mike Franklin wrote:
[...]
- default win32 OMF:
https://github.com/DigitalMars/dmc/blob/master/src/core/MEMCCPY.C
- default linux:
https://github.com/gcc-mirror/gcc/blob/master/libgcc/memcpy.c
On Monday, 11 June 2018 at 06:52:20 UTC, DigitalDesigns wrote:
On Monday, 11 June 2018 at 05:15:05 UTC, Cym13 wrote:
On Sunday, 10 June 2018 at 19:10:52 UTC, DigitalDesigns wrote:
On Sunday, 10 June 2018 at 14:42:21 UTC, Basile B. wrote:
On Sunday, 10 June 2018 at 01:49:37 UTC, DigitalDesigns
On Sunday, 10 June 2018 at 14:42:21 UTC, Basile B. wrote:
On Sunday, 10 June 2018 at 01:49:37 UTC, DigitalDesigns wrote:
Please allow -J to specify that all subdirectories are to be
included! I'm having to include all subdirectories of my
library with J because I import each file and extract
On Monday, 11 June 2018 at 01:03:16 UTC, Mike Franklin wrote:
I've modified the test based on the feedback so far, so here's
what it looks like now:
import std.datetime.stopwatch;
import std.stdio;
import core.stdc.string;
import std.random;
import std.algorithm;
enum length = 4096 * 2;
void
On Sunday, 10 June 2018 at 01:49:37 UTC, DigitalDesigns wrote:
Please allow -J to specify that all subdirectories are to be
included! I'm having to include all subdirectories of my
library with J because I import each file and extract
information. It would be better to have something like
On Friday, 8 June 2018 at 16:20:12 UTC, gdelazzari wrote:
On Friday, 8 June 2018 at 16:11:27 UTC, Basile B. wrote:
While this look okay please in the initial PR don't forget to
add code to deactivate colors when DUB will be piped.
Sure, I won't forget about that. On Linux (and I guess also
On Friday, 8 June 2018 at 13:35:36 UTC, gdelazzari wrote:
Hello everyone, I'm a new user of the language (I've been
playing around with it for some months) and I'm really liking
it.
[...]
I started this thread to have a discussion on this before
submitting any pull request (which, in the
On Thursday, 7 June 2018 at 15:18:49 UTC, H. S. Teoh wrote:
On Thu, Jun 07, 2018 at 01:42:17PM +, Basile B. via
Digitalmars-d wrote:
[...]
[...]
You're on the right track. Now all you have to do is to add
operator overloading to make the wrapper type infectious, and a
convenience
On Thursday, 7 June 2018 at 05:28:26 UTC, Nick Sabalausky
(Abscissa) wrote:
On 06/03/2018 11:51 PM, Anton Fediushin wrote:
What's your opinion about that? Will you continue using GitHub?
The obvious question is "Will MS use evil/strongarm shenanigans
with GitHub?"
In any case, I've
I don't know if this is a bug but this works:
```
module runnable;
struct Byte { byte value; alias value this;}
void main()
{
{Byte b; auto c = ~b;} // no message
{byte b; auto c = ~b;} // deprecation...
}
```
---
Baz
On Saturday, 2 June 2018 at 12:49:45 UTC, Microbe wrote:
As you know, surrounding code within a module can infilitrate
the membrane structure of those types that use 'private' to
protect their boundary (for example, the 'private' member in
that struct, in that blog).
Since the compiler is
On Saturday, 2 June 2018 at 00:49:04 UTC, Bastiaan Veelo wrote:
On Friday, 1 June 2018 at 18:18:17 UTC, Tony wrote:
But with regard to varians compile-time stuff and function
annotations and other things that didn't exist years ago, has
that resulted in noticeably faster programming and/or
Yet another update in this crazy 3.6.x burst.
See [1] for changelog and downloads. zip files and setup program
include D-Scanner 0.5.6 and DCD ~master which both include fixes
for a crash that could happen since a small month.
[1]: https://github.com/BBasile/Coedit/releases/tag/v3.6.15
On Friday, 1 June 2018 at 13:40:51 UTC, Carl Sturtivant wrote:
A computationally intensive process run from the command line
works fine, runs to completion after several minutes, writing a
few hundred lines of text to standard output and creating,
writing to and closing around 200 files of
On Thursday, 31 May 2018 at 09:11:41 UTC, pineapple wrote:
When I run code on OSX and it produces a stack trace, the
output uses mangled symbols and is missing line numbers, like
so - how can I change these stack traces to be more readable?
0 objectpool
On Wednesday, 30 May 2018 at 22:57:06 UTC, aberba wrote:
I've been given a challenge to write texts using asterisks to
form the letters. D happen to have an unlimited amount of
idioms yet i'm out out ideas as to the simplest approach. Task
is to basically take a piece of text and write them as
On Tuesday, 29 May 2018 at 02:46:03 UTC, Jonathan M Davis wrote:
On Monday, May 28, 2018 05:43:23 Simen Kjærås via
Digitalmars-d-learn wrote:
On Sunday, 27 May 2018 at 17:42:15 UTC, Sobaya wrote:
> I'd like to get symbols that have an UDA.
>
> But when the member is private, it is not obtained.
Last time i promoted my stuff here there were two compiler/Phobos
bugs preventing to activate this nice getopt-like function.
specs:
- It's based on UDA.
- It supports multiple locations for UDA-fied functions and
variables.
- It doesn't use pointers, UDA-ified variable are accessed
without
On Sunday, 27 May 2018 at 06:00:30 UTC, IntegratedDimensions
wrote:
(see my other most recent post for disclaimer)
My designs generally work like this:
Main Type uses Subservient types
A a
B b
C c
where C : B : A, c
On Friday, 25 May 2018 at 01:17:45 UTC, IntegratedDimensions
wrote:
On Friday, 25 May 2018 at 01:02:00 UTC, Basile B. wrote:
On Friday, 25 May 2018 at 00:15:39 UTC, IntegratedDimensions
wrote:
On Thursday, 24 May 2018 at 23:31:50 UTC, Alex wrote:
On Thursday, 24 May 2018 at 20:24:32 UTC,
On Friday, 25 May 2018 at 00:15:39 UTC, IntegratedDimensions
wrote:
On Thursday, 24 May 2018 at 23:31:50 UTC, Alex wrote:
On Thursday, 24 May 2018 at 20:24:32 UTC, IntegratedDimensions
wrote:
class T;
class TT : T;
interface I
{
@property T t();
}
abstract class A
{
T _t;
@property
On Thursday, 24 May 2018 at 23:03:21 UTC, aliak wrote:
Hi,
I was essentially trying to do this:
struct S {
void f() {}
}
auto f = S.f; // f becomes void function(S) ??
S s;
f(s);
Is something like that possible?
Cheers,
- Ali
Sure:
```
import std.stdio;
void main(string[] args)
{
On Thursday, 24 May 2018 at 18:54:41 UTC, Walter Bright wrote:
On 5/23/2018 7:31 PM, Walter Bright wrote:
Back on the front page with an apparent followup:
Consider using Digital Mars C compiler (virtualbox.org)
33 points by yuhong 3 hours ago | flag | hide | past | web |
favorite | 14
On Tuesday, 22 May 2018 at 16:17:48 UTC, Russel Winder wrote:
Hi,
I have a shared object (of DInotify) compiled with ldc2.
I have a program (me-tv) which seems to work when compiled with
ldc2.
If I compile the program (me-tv) with dmd then it throws a
SIGSEGV seemingly
in
On Thursday, 17 May 2018 at 22:07:46 UTC, Bastiaan Veelo wrote:
Hi!
The code in [1] compiles and runs flawlessly on Windows, but
not on Linux (neither run.dlang nor Travis docker image). Any
idea what can be done?
Hello. Yes, add `import core.stdc.stdarg;` in your module and it
works.
I
On Tuesday, 15 May 2018 at 10:50:15 UTC, Ethan Scott wrote:
I constantly keep getting this error.
Please help.
an example:
$ gdb myprog
$ break _d_throwc
$ break _d_throwdwarf
$ run
then when it breaks,
$ bt
because the breaks are always a bit deeper than the interesting
stuff.
Baz.
On Friday, 11 May 2018 at 21:43:24 UTC, aberba wrote:
This two GUI libs written in C I just found are really good
looking and looks production ready.
Embedded systems:
LittlevGL is a free and open-source graphics library providing
everything you need to create embedded GUI with easy-to-use
On Friday, 11 May 2018 at 17:25:44 UTC, Danny Arends wrote:
Hey all,
Is getopt not supposed to be used with shared structs ?
I don't know but if you are opened to alternative i have just
tested my getopt-like function at it works with shared, i don't
know why... The design is different
On Friday, 11 May 2018 at 12:35:52 UTC, TED_996 wrote:
I've been trying to debug this for a long time now. I am trying
to build one of the msgpack examples
(examples/upacker_foreach.d) and the linking failed. I have
since succeeded and I'm trying to find out if this is intended
behavior or a
On Wednesday, 9 May 2018 at 09:44:07 UTC, Basile B. wrote:
On Wednesday, 9 May 2018 at 08:48:41 UTC, Denis Feklushkin
wrote:
On Tuesday, 8 May 2018 at 22:52:26 UTC, Basile B. wrote:
On Tuesday, 8 May 2018 at 07:47:26 UTC, Denis Feklushkin
wrote:
Unlike it, we have almost everything ready:
401 - 500 of 1382 matches
Mail list logo