On Saturday, 9 November 2019 at 22:46:16 UTC, kinke wrote:
druntime depends on OS, architecture and coupled C runtime -
what OS are you going to target?
thank you all first! I just made a basic mistake and didn't
realized that druntime is just libraries and onlymatter when
linking the final
On Sunday, 10 November 2019 at 00:00:55 UTC, Adam D. Ruppe wrote:
On Saturday, 9 November 2019 at 23:59:20 UTC, Vinod K Chandran
wrote:
I 'named the the def file "simple.def", since my programs name
is also "simple". But no luck. Any help ?
you need to pass the .def file on the dmd command
On Monday, 4 November 2019 at 00:20:37 UTC, Ali Çehreli wrote:
On 11/03/2019 08:55 AM, Vinod K Chandran wrote:
> [...]
There is nothing that stops one from using the C++ preprocessor
on any text file. For example, you can do the following
wherever GCC exists. If there are the following lines
On Sunday, 10 November 2019 at 01:28:13 UTC, cartland wrote:
I had http_proxy env var set to blank. Worked when I unset it.
Hah, I called it!
But I didn't realize an env var would do it with blank. That's
kinda crazy, the code should prolly check that; I'd call it a bug.
On Sunday, 10 November 2019 at 01:28:13 UTC, cartland wrote:
On Saturday, 9 November 2019 at 01:02:57 UTC, cartland wrote:
On Saturday, 9 November 2019 at 00:53:13 UTC, cartland wrote:
On Friday, 8 November 2019 at 17:01:07 UTC, ikod wrote:
*snip*
Even this does it.
import requests;
void
On Saturday, 9 November 2019 at 01:02:57 UTC, cartland wrote:
On Saturday, 9 November 2019 at 00:53:13 UTC, cartland wrote:
On Friday, 8 November 2019 at 17:01:07 UTC, ikod wrote:
*snip*
Even this does it.
import requests;
void main() {
}
https://github.com/ikod/dlang-requests/issues/109
On Saturday, 9 November 2019 at 23:59:20 UTC, Vinod K Chandran
wrote:
I 'named the the def file "simple.def", since my programs name
is also "simple". But no luck. Any help ?
you need to pass the .def file on the dmd command line with the
rest of your stuff
Hi all,
I am just playing with some win api code in D. Well, so far so
good. I've create a simple program which shows a message box. I
know i can avoid the cmd window with "dmd -L/SUBSYSTEM:windows".
But this https://wiki.dlang.org/D_for_Win32 says that a "*.def"
file with these two lines
On Friday, 8 November 2019 at 15:25:40 UTC, dangbinghoo wrote:
On Friday, 8 November 2019 at 13:52:18 UTC, kinke wrote:
On Friday, 8 November 2019 at 10:40:15 UTC, dangbinghoo wrote:
hi,
I'm not sure what you are trying to achieve; you can easily
cross-compile druntime & Phobos with LDC,
On Thursday, 31 October 2019 at 03:56:56 UTC, lili wrote:
Hi:
why writeln need GC?
Upon this post, I thought writing a gc-free writeln would be a
good learning practice. Although it is not a feature-complete
one, it was a lot of fun to do it :)
https://github.com/aferust/stringnogc
I've noticed that the make flag ENABLE_LTO=1 fails as
Error: unrecognized switch '-flto=full'
when building dmd with GDC 9.
Does gdc-9 support lto? If so what flags should I use?
If not what are the preferred DFLAGS when building dmd with gdc?
On 2019-11-08 16:25, dangbinghoo wrote:
hmm, if runtime is implemented in regular D, how could the regular D
code depends on regular D runtime be compiled when we doesn't have a D
runtime even exists? thinking thant we just have xtensa-llvm, and
building ldc for xtensa CPU, the runtime will
Hi
I want to build a set of dynamic libraries in D on Linux.
Then I want to load these libraries dynamically.
So I wrote a app with "extern (D): void hello(string text)..."
compiled with dub / "targetType":"dynamicLibrary"
...works fine. App called libapp.so
Then I tried to call these libs in
On Saturday, 9 November 2019 at 13:26:12 UTC, Adam D. Ruppe wrote:
That's checking the if the template argument C is a case of
Complex!R, while at the same time declaring a symbol R to hold
the inner type.
I got it. Thank you very much ;)
On Saturday, 9 November 2019 at 12:56:52 UTC, Dennis wrote:
Put an ampersand before the function to get its address:
signal.signal(SIGWINCH,cast(void function(int)) _winch);
In C you can omit the & when taking a function address, but
when you do that in D it tries to call the function and
On Saturday, 9 November 2019 at 12:30:46 UTC, René Heldmaier
wrote:
The part i don't understand is "is(C R == Complex!R)".
What does that mean?
That's checking the if the template argument C is a case of
Complex!R, while at the same time declaring a symbol R to hold
the inner type.
So
On Saturday, 9 November 2019 at 12:44:20 UTC, W.Boeke wrote:
What should be the right way to accomplish this?
Put an ampersand before the function to get its address:
signal.signal(SIGWINCH,cast(void function(int)) _winch);
In C you can omit the & when taking a function address, but when
I am trying to catch a signal from the OS, as follows:
int winch;
void set_winch (int sig) {
enum SIGWINCH = 28;
signal.signal(SIGWINCH,cast(void function(int))set_winch);
winch = sig;
}
The SIGWINCH signal notifies a window resize. In C this works
(without the cast), but in D I get a
Hi,
i'm currently implementing a dual number datatype. Dual numbers
are very similar to complex numbers, but instead i (i^2 = -1) you
have epsilon (epsilon^2 = 0).
This sounds strange but it is really useful for something called
"automatic derivation". I will probably explain it in more detail
19 matches
Mail list logo