On Saturday, 28 September 2013 at 05:28:05 UTC, ollie wrote:
On Fri, 27 Sep 2013 03:22:32 +0200, wagtail wrote:
A part of code shown below.
/++ Server main()
/
ushort port = 9876;
auto inet = new
Hi guys,
I recently updated my DMD-setup to 2.063.2 and having some
problems using the curl library. I wrote something like that:
curl_slist* headers;
headers = curl_slist_append(headers, cast(char*) toStringz(user ~
: ~ pass));
curl_easy_setopt(ch, CurlOption.timeout_ms, timeout);
I use curl in my application. If I link it with -lcurl - symbols are
undefined (libcurl3 installed), if I link with -lphobos2 - it links. So
curl is linked with libphobos2.so? But what to do if I need static
linking? (ubuntu 12.04 x86_64, dmd 2.063.2)
catching Throwable is wrong. But is it wrong if I used it in separate
thread to prevent thread dying like:
static void run()
{
while(true)
{
try
{
/// do work
...
//
On Saturday, September 28, 2013 15:42:43 Alexandr Druzhinin wrote:
catching Throwable is wrong. But is it wrong if I used it in separate
thread to prevent thread dying like:
static void run()
{
while(true)
{
try
{
/// do work
On 27/09/13 21:13, Jonathan M Davis wrote:
No, it should not be executable. The only time that it makes sense for a .d
file to be executable is when it's a script with something like #!/bin/rdmd at
the top, which certainly isn't the case for windows.d.
OK, I'll file a bug report and prepare a
On 27/09/13 21:13, Jonathan M Davis wrote:
No, it should not be executable. The only time that it makes sense for a .d
file to be executable is when it's a script with something like #!/bin/rdmd at
the top, which certainly isn't the case for windows.d.
Is testing for correct permissions
Am 28.09.2013 11:16, schrieb Joseph Rushton Wakeling:
On 27/09/13 21:13, Jonathan M Davis wrote:
No, it should not be executable. The only time that it makes sense for
a .d
file to be executable is when it's a script with something like
#!/bin/rdmd at
the top, which certainly isn't the case for
On 28/09/13 11:19, Benjamin Thaut wrote:
Wouldn't it make more sense to automatically remove execute permission instead
of testing against them? For someone only developing on windows it will not help
when the autotester rejects the pull request just because it hase been made from
a windows
On 28/09/13 10:28, Alexandr Druzhinin wrote:
I use curl in my application. If I link it with -lcurl - symbols are
undefined (libcurl3 installed), if I link with -lphobos2 - it links. So curl
is linked with libphobos2.so? But what to do if I need static linking?
(ubuntu 12.04 x86_64, dmd
On 28/09/13 11:12, Joseph Rushton Wakeling wrote:
OK, I'll file a bug report and prepare a patch. Might not arrive 'til next
week.
Pull request sent: https://github.com/D-Programming-Language/druntime/pull/618
I'll file a bug report next week, but to request that permissions are checked
28.09.2013 15:50, Jonathan M Davis пишет:
It's just as wrong to catch Throwable there is at is anywhere. If you do that
you'll catch Errors, and Errors are _supposed_ to kill your program. They
indicate that something bad enough has occurred that it's better to terminate
your program than
On Saturday, 28 September 2013 at 12:26:37 UTC, Alexandr
Druzhinin wrote:
Just to clear - in my case child thread processes parent
commands like a worker and every loop iteration isn't
correlated with others before and after so I thought that just
new iteration resets bad application state
On Saturday, 28 September 2013 at 12:26:37 UTC, Alexandr
Druzhinin wrote:
Just to clear - in my case child thread processes parent
commands like a worker and every loop iteration isn't
correlated with others before and after so I thought that just
new iteration resets bad application state
28.09.2013 17:06, Jordi Sayol пишет:
On 28/09/13 10:28, Alexandr Druzhinin wrote:
I use curl in my application. If I link it with -lcurl - symbols are undefined
(libcurl3 installed), if I link with -lphobos2 - it links. So curl is linked
with libphobos2.so? But what to do if I need static
Thank you for info! I will redesign.
On 28/09/13 14:41, Alexandr Druzhinin wrote:
28.09.2013 17:06, Jordi Sayol пишет:
On 28/09/13 10:28, Alexandr Druzhinin wrote:
I use curl in my application. If I link it with -lcurl - symbols are
undefined (libcurl3 installed), if I link with -lphobos2 - it links. So
curl is linked with
Hi,
From The D Programming Language by Andrei Alexandrescu: If you
forget about --main, don't worry; the linker will fluently and
baroquely remind you of that in its native language, encrypted
Klingon.
So I think that your issue is well known and not a development
priority at the moment...
Hello,
I came across this unexpected error in the first example, so I
tested similar scenarios, but couldn't make any sense of it.
Thanks, Eberhard.
class A {
void foo() {}
static class B {
private A a;
alias a this;
void bar() {
28.09.2013 20:14, Jordi Sayol пишет:
Can I see your full command line please?
$ dmd -lcurl
I use dub, but I did rdmd version:
rdmd --build-only -I/home/drug/.dub/packages/derelict-master/import
-I/home/drug/.dub/packages/glamour-master -version=Derelict3
-version=gl3n
On Sat, 28 Sep 2013 08:42:16 +0200, wagtail wrote:
I tried rewriting code with using ADDR_ANY, but do not work...
Ali Çehreli posted some examples in the D.learn group earlier.
He creates the socket then uses its member functions to setup
the connection, but it should work either way.
Try
This is just a guess, but it is because you're setting the socket
to be blocking after the call to accept? If it defaults to
non-blocking, this would cause accept to return immediately, so
the client connecting would fail as the server isn't currently
accepting connections. Also to verify it's
On Saturday, 28 September 2013 at 17:13:06 UTC, ollie wrote:
Try something like this:
auto inet = new InternetAddress(port);
Oh,I'm sorry.
I forgot writing I already tried above instance.
The constructor for class InternetAddress will set addr to
ADDR_ANY.
This should work if your server
On Saturday, 28 September 2013 at 23:25:20 UTC, Kapps wrote:
This is just a guess, but it is because you're setting the
socket to be blocking after the call to accept? If it defaults
to non-blocking, this would cause accept to return immediately,
so the client connecting would fail as the
I have more information.
While doing some more experiment, I noticed that at some point a
floating-point exception was thrown.
In the documentation, it says that floating-point exception are
disabled by default. It further says that have floating-point
exception enabled would disable the
25 matches
Mail list logo