Hi all
I'm looking to try and write an interface to C++, but given I'm a
casual dabbler in D, it's slightly beyond my current ability in
terms of both C++ and D!
As a leg up, how would one translate something like this from C++
to D?
`typedef int (CV_CDECL* CvCmpFunc)(const void* a, const
https://issues.dlang.org/show_bug.cgi?id=8687
--- Comment #7 from github-bugzi...@puremagic.com ---
Commit pushed to master at https://github.com/dlang/dmd
https://github.com/dlang/dmd/commit/36af6b103207cd9805e9faefe4130447a98a8372
Fix Issue 8687 - Variadic templates do not work properly with
On Sunday, 4 February 2018 at 05:45:02 UTC, Basile B. wrote:
1/
void foo()
{
asm pure nothrow
{
naked;
mov RAX, [0x10][0x20] R8;
ret;
}
}
generates
;--- SUB 00449468h ---
00449468h mov eax, 0030h
0044946Dh ret
1/
void foo()
{
asm pure nothrow
{
naked;
mov RAX, [0x10][0x20] R8;
ret;
}
}
generates
;--- SUB 00449468h ---
00449468h mov eax, 0030h
0044946Dh ret
;-
2/
void foo()
{
asm pure
https://issues.dlang.org/show_bug.cgi?id=18363
Issue ID: 18363
Summary: we should autogenerate duplicate “.h” header files in
dmd to keep them in sync
Product: D
Version: D2
Hardware: x86
OS: All
On Sunday, 4 February 2018 at 05:03:31 UTC, Basile B. wrote:
```
__gshared a = "sdfg";
void main()
{
asm
{
mov RCX, [a];
}
}
```
Error: cannot directly load global variable 'a' with PIC code
How can i do that indirectly then ?
Also consider that there's no RIP:
```
__gshared a = "sdfg";
void main()
{
asm
{
mov RCX, [a];
}
}
```
Error: cannot directly load global variable 'a' with PIC code
How can i do that indirectly then ?
https://issues.dlang.org/show_bug.cgi?id=8687
Timothee Cour changed:
What|Removed |Added
CC|
On Saturday, 3 February 2018 at 13:52:17 UTC, blahness wrote:
Hi everyone,
Not sure how interested people here will be with this but I've
ported https://github.com/fogleman/nes from Go to D [1]. I
should point out that I'm not the author of the original Go
version.
The emulator code itself
Really cool work!
On Saturday, 3 February 2018 at 13:14:04 UTC, rjframe wrote:
Except it doesn't. The GPL can be used to keep a competitor
from stepping up and using your work to create an alternative
product, allowing you to have a mixed open/closed model without
worrying about competition.
Many companies
On Sunday, 4 February 2018 at 01:57:26 UTC, Rubn wrote:
I would prefer to have one compiler that is being worked on
than having split effort for 3 different compilers when larger
communities only have 1 compiler.
There is very little split effort. The way this actually works is
there's one D
On 03/02/2018 6:06 PM, Andres Clari wrote:
Hi, is there support for drag and drop in dlangui??
I haven't found anything on the docs, issues or forums.
I'm building a project that requires support for dropping URLs from the
browser into a ListWidget. Is this possible with dlangui at all?
No.
On Saturday, 3 February 2018 at 23:07:30 UTC, Norm wrote:
On Saturday, 3 February 2018 at 15:22:37 UTC, Rubn wrote:
On Saturday, 3 February 2018 at 08:18:57 UTC, H. S. Teoh wrote:
On Fri, Feb 02, 2018 at 08:16:25PM -0800, Walter Bright via
Digitalmars-d wrote:
On 2/2/2018 7:06 AM, Benny
On Saturday, 3 February 2018 at 15:33:01 UTC, Russel Winder wrote:
Who is your management mentor? It is making your job harder if
you are trying to teach yourselves purely from experience. Been
there done that, made much better progress after reading:
In my experience, there is nothing worse
On Saturday, 3 February 2018 at 22:59:06 UTC, Dgame wrote:
This is a nice, refreshing post. You state problems and why you
switched to Go. You give a ton of informations (here and in
your prior posts) why you did what you did and what problems
you've seen. This could be used to improve D. But
On Sunday, 4 February 2018 at 01:23:50 UTC, Rubn wrote:
On Saturday, 3 February 2018 at 23:42:28 UTC, welkam wrote:
[...]
I think you have to build with an old version of MSVC, 2010
maybe? It's been a while since I built it I don't remember the
exactly which version ended up working.
2013
On Saturday, 3 February 2018 at 23:42:28 UTC, welkam wrote:
Tried to use DMD compiler that I built from source by following
these instructions https://wiki.dlang.org/Building_under_Windows
They are outdated but I managed to compile it but I get this
error when I tried to compile some code.
https://issues.dlang.org/show_bug.cgi?id=18362
Issue ID: 18362
Summary: Build dmd with LTO and PGO
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: P1
On Saturday, 3 February 2018 at 23:37:43 UTC, Dgame wrote:
On Saturday, 3 February 2018 at 23:25:09 UTC, welkam wrote:
On Saturday, 3 February 2018 at 22:59:06 UTC, Dgame wrote:
This could be used to improve D
So when will you start working on issues he described?
And when will you? I
On Saturday, 3 February 2018 at 23:39:00 UTC, Dgame wrote:
On Saturday, 3 February 2018 at 23:29:58 UTC, Christof Schardt
wrote:
On Saturday, 3 February 2018 at 22:59:06 UTC, Dgame wrote:
I congratulate you on your decision. I also changed to
another language and I've never regretted it.
Which
Tried to use DMD compiler that I built from source by following
these instructions https://wiki.dlang.org/Building_under_Windows
They are outdated but I managed to compile it but I get this
error when I tried to compile some code.
dmdm -run Main.d
On Saturday, 3 February 2018 at 23:25:09 UTC, welkam wrote:
On Saturday, 3 February 2018 at 22:59:06 UTC, Dgame wrote:
This could be used to improve D
So when will you start working on issues he described?
And when will you? I already tried in the past as you can see.
On Saturday, 3 February 2018 at 23:29:58 UTC, Christof Schardt
wrote:
On Saturday, 3 February 2018 at 22:59:06 UTC, Dgame wrote:
I congratulate you on your decision. I also changed to another
language and I've never regretted it.
Which is...? (just out of curiousity, btw I'm currently
watching
On Saturday, 3 February 2018 at 22:59:06 UTC, Dgame wrote:
I congratulate you on your decision. I also changed to another
language and I've never regretted it.
Which is...? (just out of curiousity, btw I'm currently watching
nim, after long years monitoring D and buying every book)
On Saturday, 3 February 2018 at 22:59:06 UTC, Dgame wrote:
This could be used to improve D
So when will you start working on issues he described?
On Saturday, 3 February 2018 at 15:22:37 UTC, Rubn wrote:
On Saturday, 3 February 2018 at 08:18:57 UTC, H. S. Teoh wrote:
On Fri, Feb 02, 2018 at 08:16:25PM -0800, Walter Bright via
Digitalmars-d wrote:
On 2/2/2018 7:06 AM, Benny wrote:
> Other languages have slogans, they have selling points.
Hi All,
Request your help, on hot to replace an element(a[2]) in an
array with the element(a[3])
Eg,
auto a = Array!string("T1","T2","T3");
writeln(D1.replace(a[2], a[3]));
From,
Vino.B
On Saturday, 3 February 2018 at 19:28:01 UTC, Seb wrote:
On Saturday, 3 February 2018 at 19:13:05 UTC, Vino wrote:
[...]
2.079 [1, 2] will ship with slide:
---
auto arr = ["T1", "T2", "T3", "T4", "T5"];
arr.slide(2).each!writeln;
---
[...]
Hi Seb;
Thank you very much.
From,
Vino.B
This is a nice, refreshing post. You state problems and why you
switched to Go. You give a ton of informations (here and in your
prior posts) why you did what you did and what problems you've
seen. This could be used to improve D. But the regular reply you
will get if you criticize D even a
https://issues.dlang.org/show_bug.cgi?id=13121
Seb changed:
What|Removed |Added
Keywords||pull
--- Comment #1 from Seb
https://issues.dlang.org/show_bug.cgi?id=13844
Seb changed:
What|Removed |Added
Keywords||pull
CC|
On Saturday, 3 February 2018 at 18:11:15 UTC, Daniel Kozak wrote:
Today I have added basic support for D language (ldc and dub)
to chromebrew: https://github.com/skycocker/chromebrew/pull/1717
So if you have ChromeBook with Chrome OS (developer mode is
needed for chromebrew), you can try it,
https://issues.dlang.org/show_bug.cgi?id=18306
github-bugzi...@puremagic.com changed:
What|Removed |Added
Status|NEW |RESOLVED
https://issues.dlang.org/show_bug.cgi?id=18306
--- Comment #2 from github-bugzi...@puremagic.com ---
Commits pushed to master at https://github.com/dlang/dlang.org
https://github.com/dlang/dlang.org/commit/8d9655b4f7387342b28f85bd40ca64e5f3953d64
Fix Issue 18306 - No compliation errors shown
On Sat, Feb 03, 2018 at 06:25:26PM +, Adam D. Ruppe via Digitalmars-d wrote:
> On Saturday, 3 February 2018 at 17:20:35 UTC, H. S. Teoh wrote:
> > I got sick of just whining about, and decided to do something about
> > it instead:
>
> Whelp, g'luck. I've tried to null out the macro before,
On Friday, 2 February 2018 at 00:33:03 UTC, Jakub Łabaj wrote:
On the other hand, shifting operators are equally confusing for
me, as they are for you - they really work in the other way
around! I thought this is a very weird bug, but I found this
pull request:
https://issues.dlang.org/show_bug.cgi?id=17493
Walter Bright changed:
What|Removed |Added
Status|NEW |RESOLVED
https://issues.dlang.org/show_bug.cgi?id=18306
Seb changed:
What|Removed |Added
Keywords||pull
CC|
Very cool!
https://issues.dlang.org/show_bug.cgi?id=18298
--- Comment #3 from Andre ---
I have a quite uncommon issue with the package "request".
I work for a company which has rules how open source software can be used. Each
software component needs to go through an open source process.
https://issues.dlang.org/show_bug.cgi?id=18345
Seb changed:
What|Removed |Added
CC||greensunn...@gmail.com
---
On Saturday, 3 February 2018 at 19:13:05 UTC, Vino wrote:
Hi All,
Request you help on printing an array in below,
Eg:
Array ("T1", "T2", "T3", "T4", "T5")
Output required as below
T1,T2
T2,T3
T3,T4
T4,T5
From,
Vino.B
2.079 [1, 2] will ship with slide:
---
auto arr = ["T1", "T2", "T3",
On Saturday, 3 February 2018 at 19:19:00 UTC, Adam D. Ruppe wrote:
On Saturday, 3 February 2018 at 19:13:05 UTC, Vino wrote:
Request you help on printing an array in below,
Try looping through the array printing the current item
followed by the item after the current item. Foreach with
On Saturday, 3 February 2018 at 19:13:05 UTC, Vino wrote:
Request you help on printing an array in below,
Try looping through the array printing the current item followed
by the item after the current item. Foreach with index may be
helpful. Consider what happens on the last element.
What about IDE sponsorship? I think that we should vote for the
best D IDE of the year and some money should be given as a prize
to the IDE maintainer.
Hi All,
Request you help on printing an array in below,
Eg:
Array ("T1", "T2", "T3", "T4", "T5")
Output required as below
T1,T2
T2,T3
T3,T4
T4,T5
From,
Vino.B
On Saturday, 3 February 2018 at 10:44:58 UTC, Andrzej Kilijański
wrote:
On Thursday, 1 February 2018 at 12:21:24 UTC, rjframe wrote:
[...]
I think that many people looking for a new language first check
the possibilities of creating a GUI. At least it was with me.
If I did not found
On Saturday, 3 February 2018 at 17:20:35 UTC, H. S. Teoh wrote:
I got sick of just whining about, and decided to do something
about it instead:
Whelp, g'luck. I've tried to null out the macro before, maybe
this approach will work better.
The stupid thing should just be killed entirely
Today I have added basic support for D language (ldc and dub) to
chromebrew: https://github.com/skycocker/chromebrew/pull/1717
So if you have ChromeBook with Chrome OS (developer mode is
needed for chromebrew), you can try it, if everything works ok
for you.
Hi, is there support for drag and drop in dlangui??
I haven't found anything on the docs, issues or forums.
I'm building a project that requires support for dropping URLs
from the browser into a ListWidget. Is this possible with dlangui
at all?
---
interface A{}
void* a=cast(void*)5;
A b=cast(A)a; //ok
A c=cast(A)cast(void*)5; //error
---
Last line gives Error: cannot cast `void*` to `A`. Is it intended?
On 3 February 2018 at 16:47, Ali via Digitalmars-d
wrote:
> Out of curiosity
>
> What is the history between dmd and symantec
> I was able to find few things online
>
> I know that there once was a company called zorland, which later becamse
> zortech
>
> Zortech,
On Sat, 03 Feb 2018 15:32:41 +, Mike Parker wrote:
> We all have (or have had) our "favorite" issues in Bugzilla at one time
> or another. Some that seem to hang around like unwanted guests who never
> leave. The #dbugfix campaign is an opportunity for you to finally kick
> them out.
>
> The
On Sat, Feb 03, 2018 at 06:18:55AM -0800, H. S. Teoh via Digitalmars-d wrote:
> On Sat, Feb 03, 2018 at 04:37:44AM +, Adam D. Ruppe via Digitalmars-d
> wrote:
> [...]
> > (note that the stupid leading _ is something I strip out too. Ddoc's
> > most moronic "feature". Can we PLEASE kill
https://issues.dlang.org/show_bug.cgi?id=18361
--- Comment #1 from hst...@quickfur.ath.cx ---
Currently, the automatically highlighted text is put into the DDOC_PSYMBOL,
DDOC_KEYWORD, and DDOC_PARAM macros. If the automatic highlights were to be
replaced with DDOC_AUTO_PSYMBOL,
On Saturday, 3 February 2018 at 15:38:19 UTC, Basile B. wrote:
On Saturday, 3 February 2018 at 15:30:10 UTC, Basile B. wrote:
[...]
okay solved:
module runnable;
__gshared static msg = "betterC\n";
__gshared static len = 8;
extern(C) int main(int argc, char** args)
{
asm
{
https://issues.dlang.org/show_bug.cgi?id=18361
Issue ID: 18361
Summary: Ddoc: support ability to opt out of automatic keyword
highlighting in text
Product: D
Version: D2
Hardware: All
OS: All
https://issues.dlang.org/show_bug.cgi?id=17687
hst...@quickfur.ath.cx changed:
What|Removed |Added
CC||hst...@quickfur.ath.cx
--
On Saturday, 3 February 2018 at 15:49:41 UTC, ag0aep6g wrote:
On 02/03/2018 04:32 PM, Mike Parker wrote:
The blog:
https://dlang.org/blog/2018/02/03/the-dbugfix-campaign/
I understand that spamming is normal on Twitter, but do we
really want people to spam General like that? Can't you bring
Judging by copyright dates Symantec stopped development in 1998,
and D was started in 2000.
https://issues.dlang.org/show_bug.cgi?id=18229
Seb changed:
What|Removed |Added
Keywords||pull
CC|
https://issues.dlang.org/show_bug.cgi?id=18290
Seb changed:
What|Removed |Added
Keywords||bootcamp
CC|
Out of curiosity
What is the history between dmd and symantec
I was able to find few things online
I know that there once was a company called zorland, which later
becamse
zortech
Zortech, created c/c++ compilers
Symantec tookover zortech, to get into the compiler business
Walter Albright,
On 02/03/2018 04:32 PM, Mike Parker wrote:
The blog:
https://dlang.org/blog/2018/02/03/the-dbugfix-campaign/
I understand that spamming is normal on Twitter, but do we really want
people to spam General like that? Can't you bring voting back on
Bugzilla and take that into account?
On Saturday, 3 February 2018 at 15:38:02 UTC, Adam D. Ruppe wrote:
On Saturday, 3 February 2018 at 15:30:10 UTC, Basile B. wrote:
__gshared static msg = "betterC";
That's a D string
mov ECX, msg ;//message to write
And that's the address of a D string, instead of the address
On Saturday, 3 February 2018 at 15:30:10 UTC, Basile B. wrote:
compiles with -betterC -m32
module runnable;
__gshared static msg = "betterC";
__gshared static len = 7;
extern(C) int main(int argc, char** args)
{
asm
{
naked;
mov EDX, len ;//message length
mov
On Saturday, 3 February 2018 at 15:30:10 UTC, Basile B. wrote:
__gshared static msg = "betterC";
That's a D string
mov ECX, msg ;//message to write
And that's the address of a D string, instead of the address of
the characters.
You need to put the pointer in there. So either
We all have (or have had) our "favorite" issues in Bugzilla at
one time or another. Some that seem to hang around like unwanted
guests who never leave. The #dbugfix campaign is an opportunity
for you to finally kick them out.
The blog:
https://dlang.org/blog/2018/02/03/the-dbugfix-campaign/
compiles with -betterC -m32
module runnable;
__gshared static msg = "betterC";
__gshared static len = 7;
extern(C) int main(int argc, char** args)
{
asm
{
naked;
mov EDX, len ;//message length
mov ECX, msg ;//message to write
mov EBX, 1 ;//file
On Fri, 2018-02-02 at 13:14 -0800, Walter Bright via Digitalmars-d
wrote:
> On 2/2/2018 11:08 AM, Russel Winder wrote:
> > Hummm… could it be that Andrei did not define the task
> > appropriately,
> > train the person appropriately, and mentor the person
> > appropriately.
> > Management has to be
On Saturday, 3 February 2018 at 08:18:57 UTC, H. S. Teoh wrote:
On Fri, Feb 02, 2018 at 08:16:25PM -0800, Walter Bright via
Digitalmars-d wrote:
On 2/2/2018 7:06 AM, Benny wrote:
> Other languages have slogans, they have selling points.
>
> When i hear Go, you hear uniformal, fast, simple
https://issues.dlang.org/show_bug.cgi?id=18298
--- Comment #2 from Seb ---
PR to the docs: https://github.com/dlang/phobos/pull/6116
--
https://issues.dlang.org/show_bug.cgi?id=18210
Seb changed:
What|Removed |Added
Status|NEW |RESOLVED
CC|
https://issues.dlang.org/show_bug.cgi?id=18298
Seb changed:
What|Removed |Added
CC||greensunn...@gmail.com
---
https://issues.dlang.org/show_bug.cgi?id=18330
Seb changed:
What|Removed |Added
Status|NEW |RESOLVED
CC|
https://issues.dlang.org/show_bug.cgi?id=8405
Seb changed:
What|Removed |Added
Status|NEW |RESOLVED
CC|
On Saturday, 3 February 2018 at 11:41:27 UTC, Seb wrote:
I think that would only work if we drop the ddoc of phobos
entirely or add a similar feature to ddoc.
I could live with either :P
But the underscore thing is just plain bad. Literally NOBODY has
ever liked it - every time this comes
That RCSharedAllocator PR made me think, so this is my take on
how to keep reference counted allocator in shared storage:
https://run.dlang.io/is/r1z1dd
On Saturday, 3 February 2018 at 11:44:44 UTC, Seb wrote:
Have you thought of simply postprocessing REF_ALTTEXT for your
documentation engine for now?
It actually supports the macro, so I could just keep the upstream
source here, just the difference between them is kinda striking.
The
On Sat, Feb 03, 2018 at 04:37:44AM +, Adam D. Ruppe via Digitalmars-d wrote:
[...]
> I'm updating my fork now and check out this merge conflict:
>
> <<< HEAD
> * source = The [isInputRange|input range] to encode.
> ===
> * source = The $(REF_ALTTEXT input range,
Hi everyone,
Not sure how interested people here will be with this but I've
ported https://github.com/fogleman/nes from Go to D [1]. I should
point out that I'm not the author of the original Go version.
The emulator code itself is 100% D with no dependencies. I've
also created a little app
On Sat, 03 Feb 2018 12:08:21 +, psychoticRabbit wrote:
> On Saturday, 3 February 2018 at 10:49:06 UTC, Joakim wrote:
>> And what we find is that when you allow such mixing with
>> permissively-licensed projects (that the GPL makes much more
>> difficult), .
>
> I've never been a fan of
On Saturday, 3 February 2018 at 04:16:25 UTC, Walter Bright wrote:
On 2/2/2018 7:06 AM, Benny wrote:
Other languages have slogans, they have selling points.
When i hear Go, you hear uniformal, fast, simple syntax
language.
When i hear Rust, you hear safe, manual memory management.
When i
On Saturday, 3 February 2018 at 04:16:25 UTC, Walter Bright wrote:
On 2/2/2018 7:06 AM, Benny wrote:
Other languages have slogans, they have selling points.
When i hear Go, you hear uniformal, fast, simple syntax
language.
When i hear Rust, you hear safe, manual memory management.
When i
On Saturday, 3 February 2018 at 10:49:06 UTC, Joakim wrote:
And what we find is that when you allow such mixing with
permissively-licensed projects (that the GPL makes much more
difficult), .
I've never been a fan of the GPL.. until I read this thread.
It may well be, that more and more
https://issues.dlang.org/show_bug.cgi?id=13121
Seb changed:
What|Removed |Added
Keywords||bootcamp
CC|
On Saturday, 3 February 2018 at 04:37:44 UTC, Adam D. Ruppe wrote:
On Friday, 2 February 2018 at 20:15:11 UTC, H. S. Teoh wrote:
This is the kind of thing you should be promoting to Andrei to
convince him that dpldocs is better. ;-)
I'm updating my fork now and check out this merge conflict:
On Saturday, 3 February 2018 at 04:37:44 UTC, Adam D. Ruppe wrote:
On Friday, 2 February 2018 at 20:15:11 UTC, H. S. Teoh wrote:
This is the kind of thing you should be promoting to Andrei to
convince him that dpldocs is better. ;-)
I'm updating my fork now and check out this merge conflict:
On Saturday, 3 February 2018 at 10:55:41 UTC, Ola Fosheim Grøstad
wrote:
On Saturday, 3 February 2018 at 06:15:31 UTC, Joakim wrote:
Software evolves. It isn't designed. The only question is how
strictly you
_control_ the evolution, and how open you are to external
sources of
mutations.
On Saturday, 3 February 2018 at 06:15:31 UTC, Joakim wrote:
Software evolves. It isn't designed. The only question is how
strictly you
_control_ the evolution, and how open you are to external
sources of
mutations.
Unix was designed... and was based on a more ambitious design
(Multics).
On Friday, 2 February 2018 at 13:48:12 UTC, psychotic Rabbit
wrote:
On Friday, 2 February 2018 at 10:21:35 UTC, Joakim wrote:
I can't be bothered to strain through your tortured analogies
that make no sense and explain to you all the ways you're
wrong. I'm respecting you enough to point out
On Thursday, 1 February 2018 at 12:21:24 UTC, rjframe wrote:
Do you have any thoughts, ideas, foresee any problems, have a
better way to do this? I especially don't want to do something
that is actively harmful - if the self-contained package makes
things confusing to someone trying to work
On Friday, 2 February 2018 at 15:04:42 UTC, Adam D. Ruppe wrote:
What bugs me with that sample is that the headers are repeated
a lot... but it isn't bad.
Yeah, the moment I scrolled the table header out of sight I can't
make sense of the cells anymore.
But re* sounds like maybe
https://issues.dlang.org/show_bug.cgi?id=10209
Timothee Cour changed:
What|Removed |Added
Status|RESOLVED|REOPENED
https://issues.dlang.org/show_bug.cgi?id=8765
Timothee Cour changed:
What|Removed |Added
CC|
https://issues.dlang.org/show_bug.cgi?id=11633
Timothee Cour changed:
What|Removed |Added
CC|
https://issues.dlang.org/show_bug.cgi?id=18360
Issue ID: 18360
Summary: `static assert(false)` ignored / gagged
Product: D
Version: D2
Hardware: x86
OS: Mac OS X
Status: NEW
Severity: major
On Saturday, 3 February 2018 at 06:34:57 UTC, Tony wrote:
Don't know if there is a better place to report this, but the
wiki attracted a spammer:
Deleted, thanks.
We're generally doing pretty well with spam (compared to other
wikis) thanks to https://github.com/CyberShadow/dcaptcha , but
On Friday, 2 February 2018 at 19:41:13 UTC, rumbu wrote:
In this context, I'm talking about a lazy and convenient
Windows user first experience with D. He doesn't know anything
about dub, packages or about the excellent work of Vadim. It
will be nice for him to type "import std.ui" instead to
1 - 100 of 104 matches
Mail list logo