Creation of 0MQ D project
    anonymous via Digitalmars-d-learn 
    digitalmars-d-learn at puremagic.com
       
    Mon Oct 27 17:21:20 PDT 2014
    
    
  
On Monday, 27 October 2014 at 23:56:11 UTC, Evan Lowry wrote:
> ../../.dub/packages/zeromq-master/deimos/zmq/zmq.d(96): Error: 
> function deimos.zmq.zmq.zmq_strerror without 'this' cannot be 
> const
You found a bug in the binding.
Line 96 of zmq.d [1]: const char* zmq_strerror(int errnum);
Should be: const(char)* zmq_strerror(int errnum);
I think until recently dmd would accept and ignore const on a
free function, and that's how the bug got through.
[1]
https://github.com/D-Programming-Deimos/ZeroMQ/blob/79fb14b880c172e9aba9701366fd9bc15a8644b1/deimos/zmq/zmq.d#L96
    
    
More information about the Digitalmars-d-learn
mailing list