On 12/09/2010 10:53 PM, Trass3r wrote:
It was quite hard to track that one down.
In the following example the import statement was mixed into the class
among other code so it wasn't as obvious as here.
import std.traits;
class Foo
{
import std.string;
static assert(isNumeric!int);
}
foo.d(6):
On 12/9/2010 10:04 PM, Jesse Phillips wrote:
CrypticMetaphor Wrote:
It is a linker bug, so Oplink is at fault. What is the bug number you submitted?
bug number: 5337
http://d.puremagic.com/issues/show_bug.cgi?id=5337
I almost forgot I wrote that dtips page! Thanks for bringing it up.
I just updated it to include a brief note on __gshared. The rest of it should
still work, though. Calling C functions is pretty easy.
It was quite hard to track that one down.
In the following example the import statement was mixed into the class
among other code so it wasn't as obvious as here.
import std.traits;
class Foo
{
import std.string;
static assert(isNumeric!int);
}
foo.d(6): Error: template insta
CrypticMetaphor Wrote:
> On 12/9/2010 5:28 PM, Steven Schveighoffer wrote:
>
> > Yes please, and be sure to specify that it correctly does not compile on
> > linux. http://d.puremagic.com/issues/enter_bug.cgi
>
> > -Steve
>
> Alright then!
>
> I submitted a my first bug report and added __gshare
On Thu, 09 Dec 2010 12:24:05 -0500, Andrej Mitrovic
wrote:
On 12/9/10, Steven Schveighoffer wrote:
__gshared is unprotected sharing, and the type system is not aware that
it
is shared. Can you remember what specifically you were doing with the
variable?
My dev PC is in repairs right no
On 12/9/10, Steven Schveighoffer wrote:
> __gshared is unprotected sharing, and the type system is not aware that it
> is shared. Can you remember what specifically you were doing with the
> variable?
My dev PC is in repairs right now so I don't have the code atm. It's a
project that works with
On 12/9/2010 5:28 PM, Steven Schveighoffer wrote:
On Thu, 09 Dec 2010 10:15:59 -0500, CrypticMetaphor
wrote:
On 12/9/2010 3:57 PM, Steven Schveighoffer wrote:
On Thu, 09 Dec 2010 09:37:03 -0500, CrypticMetaphor
wrote:
I found this page that describes how to call c functions from D.
I foun
On Thu, 09 Dec 2010 11:38:00 -0500, Andrej Mitrovic
wrote:
I know I prefer using shared() when interfacing with C.
I've tried using __gshared once when interfacing with C code. But I
had crashes all the time, using shared instead made my app stable
again. It might be related to the way the C
I know I prefer using shared() when interfacing with C.
I've tried using __gshared once when interfacing with C code. But I
had crashes all the time, using shared instead made my app stable
again. It might be related to the way the C code worked, since
multiple threads were involved. Anyway.. that
On Thu, 09 Dec 2010 10:15:59 -0500, CrypticMetaphor
wrote:
On 12/9/2010 3:57 PM, Steven Schveighoffer wrote:
On Thu, 09 Dec 2010 09:37:03 -0500, CrypticMetaphor
wrote:
I found this page that describes how to call c functions from D.
I found this page that describes how:
http://arsdnet.ne
On 12/9/2010 3:57 PM, Steven Schveighoffer wrote:
On Thu, 09 Dec 2010 09:37:03 -0500, CrypticMetaphor
wrote:
I found this page that describes how to call c functions from D.
I found this page that describes how:
http://arsdnet.net/dtips/#cfunc
on that page he uses gcc, and I use dmc, but I g
On Thu, 09 Dec 2010 09:37:03 -0500, CrypticMetaphor
wrote:
I found this page that describes how to call c functions from D.
I found this page that describes how:
http://arsdnet.net/dtips/#cfunc
on that page he uses gcc, and I use dmc, but I get different results.
This is what I did
// c
I found this page that describes how to call c functions from D.
I found this page that describes how:
http://arsdnet.net/dtips/#cfunc
on that page he uses gcc, and I use dmc, but I get different results.
This is what I did
// cfile.c file
extern int globalFromD;
void functionFromC(int a) {
14 matches
Mail list logo