Hmm, it must be an issue then with 2.062. I'll upgrade tomorrow
and see if that helps. Thanks!
On Saturday, 11 May 2013 at 05:13:18 UTC, Maxim Fomin wrote:
On Saturday, 11 May 2013 at 01:18:47 UTC, Jonathan Dunlap wrote:
This looks like already fixed in git head incorrect error
gagging. With
Am Sun, 05 May 2013 11:52:52 +0200
schrieb Namespace rswhi...@googlemail.com:
Here a test example:
http://dpaste.1azy.net/2cfc8ead
The memory is allocated through the SDL as you can see.
Sorry for this late reply, I actually hoped someone else would coma up
with a solution. I don't have
Hi,
I try to create a D interface to GNU Libmicrohttpd because i
could not find any, and while i was implementing a demo webserver
i've noticed that the MHD_AccessHandlerCallback in D is
triggered with the parameters in the reverse order.
This is in c:
struct MHD_Daemon *
On 5/11/13, gedaiu szabobog...@yahoo.com wrote:
alias int function(void **con_cls,
size_t *upload_data_size,
const char *upload_data,
const char *ver,
const char *method,
const char *url,
MHD_Connection* connection,
void* cls) MHD_AccessHandlerCallback;
Add extern(C) to the alias:
alias
On Saturday, 11 May 2013 at 09:39:42 UTC, Andrej Mitrovic wrote:
On 5/11/13, gedaiu szabobog...@yahoo.com wrote:
alias int function(void **con_cls,
size_t *upload_data_size,
const char *upload_data,
const char *ver,
const char *method,
const char *url,
MHD_Connection* connection,
void* cls)
On 5/11/13, gedaiu szabobog...@yahoo.com wrote:
if i do that, i get this error
I don't know what ahc_echo is, but I imagine you'll have to make it
an extern(C) function.
On Saturday, 11 May 2013 at 10:04:54 UTC, Andrej Mitrovic wrote:
On 5/11/13, gedaiu szabobog...@yahoo.com wrote:
if i do that, i get this error
I don't know what ahc_echo is, but I imagine you'll have to
make it
an extern(C) function.
Hi,
i have this code, and i don't think i can add
On Saturday, 11 May 2013 at 10:44:01 UTC, gedaiu wrote:
On Saturday, 11 May 2013 at 10:04:54 UTC, Andrej Mitrovic wrote:
On 5/11/13, gedaiu szabobog...@yahoo.com wrote:
if i do that, i get this error
I don't know what ahc_echo is, but I imagine you'll have to
make it
an extern(C) function.
On Saturday, 11 May 2013 at 01:48:12 UTC, evilrat wrote:
On Friday, 10 May 2013 at 21:11:57 UTC, Flamaros wrote:
In the load(...) method I am getting filePath without issue,
but for next parameters I am little confused on how to do.
what all that stuff in ur load method? O_O
look at my
On Saturday, 11 May 2013 at 13:00:42 UTC, Flamaros wrote:
On Saturday, 11 May 2013 at 01:48:12 UTC, evilrat wrote:
On Friday, 10 May 2013 at 21:11:57 UTC, Flamaros wrote:
In the load(...) method I am getting filePath without issue,
but for next parameters I am little confused on how to do.
On 5/11/13, gedaiu szabobog...@yahoo.com wrote:
i have this code, and i don't think i can add extern(C) there
That's a problem with the parser. Instead of auto use the actual function type:
alias extern(C) int function(void **con_cls,
size_t *upload_data_size,
const char *upload_data,
I'm trying to assign (or simply bit-copy) over 'this' inside a
constructor. There's an error when compile-time constructing the
object. Is this a bug in DMD (2.062) ?
module main;
struct Test
{
enum Test t = Test(1);
int v;
this(int)
{
v = 123;
}
this(int,
So what does Error: function
std.algorithm.MapResult!(adjoin, Result).MapResult.opIndex cannot
get frame pointer to adjoin actually mean? It's a bit cryptic to
me.
Thanks!
On Saturday, 11 May 2013 at 05:13:18 UTC, Maxim Fomin wrote:
On Saturday, 11 May 2013 at 01:18:47 UTC, Jonathan Dunlap
On Saturday, 11 May 2013 at 15:53:04 UTC, Jonathan Dunlap wrote:
So what does Error: function
std.algorithm.MapResult!(adjoin, Result).MapResult.opIndex
cannot
get frame pointer to adjoin actually mean? It's a bit cryptic
to me.
Thanks!
This means that MapResult.opIndex cannot get frame
On Saturday, 11 May 2013 at 11:28:10 UTC, evilrat wrote:
On Saturday, 11 May 2013 at 10:44:01 UTC, gedaiu wrote:
On Saturday, 11 May 2013 at 10:04:54 UTC, Andrej Mitrovic
wrote:
On 5/11/13, gedaiu szabobog...@yahoo.com wrote:
if i do that, i get this error
I don't know what ahc_echo is, but
On Saturday, 11 May 2013 at 13:40:15 UTC, evilrat wrote:
On Saturday, 11 May 2013 at 13:00:42 UTC, Flamaros wrote:
On Saturday, 11 May 2013 at 01:48:12 UTC, evilrat wrote:
On Friday, 10 May 2013 at 21:11:57 UTC, Flamaros wrote:
In the load(...) method I am getting filePath without issue,
On 05/11/2013 10:34 AM, gedaiu wrote:
how i can provide a class method instead a simple function as
callback?
Can you describe a little bit more? Where will the object that the
member function will be called on come from? Do you want to use always
the same object that you already have up
On Saturday, 11 May 2013 at 17:34:53 UTC, gedaiu wrote:
yeah... what a shameful mistake.. i vave a new tricky
question... how i can provide a class method instead a simple
function as callback?
with D code use delegates as Ali commented, it's simple. with C
code use static method and pass
On Saturday, 11 May 2013 at 22:01:33 UTC, Flamaros wrote:
Thanks a lot, I think using Variant[] is a better way. For the
moment (maybe for few minutes) it's necessary to always give
the Variant array to the getResource method, but it can be null.
I actually use derelict3, but for this VBO
class A
{
public synchronized void test1()
{
}
public void test2()
{
}
}
int main(string[] argv)
{
auto a1 = new shared(A)();
a1.test1();
a1.test2();
auto a2 = new A();
a2.test1();
a2.test2();
}
Error: function main.A.test2 () is not callable
On Saturday, 11 May 2013 at 14:34:41 UTC, TommiT wrote:
I'm trying to assign (or simply bit-copy) over 'this' inside a
constructor. There's an error when compile-time constructing
the object. Is this a bug in DMD (2.062) ?
module main;
struct Test
{
enum Test t = Test(1);
int v;
On Sunday, May 12, 2013 04:54:25 Domain wrote:
class A
{
public synchronized void test1()
{
}
public void test2()
{
}
}
int main(string[] argv)
{
auto a1 = new shared(A)();
a1.test1();
a1.test2();
auto a2 = new A();
On Sunday, 12 May 2013 at 03:44:16 UTC, Jonathan M Davis wrote:
On Sunday, May 12, 2013 04:54:25 Domain wrote:
class A
{
public synchronized void test1()
{
}
public void test2()
{
}
}
int main(string[] argv)
{
auto a1 = new shared(A)();
a1.test1();
On Sunday, May 12, 2013 06:34:48 Domain wrote:
Sure, we can use synchronized block instead of synchronized
function. But it's inconvenient. Why not the compiler
automatically convert the non-synchronized function to
synchronized function when the object declare as shared?
The actual code
24 matches
Mail list logo