I'm trying to make some home-grown d build system, but and one of my
tasks
is to get module dependencies. Yes, I know about -deps DMD switch, but
it works
when all needed modules are given to compiler. But if some dependencies
absent compiler
just aborts with error module foo is in file
module testObj;
public interface testInterface {
void someMethod();
}
public class testObj
{
Object someCaller;
this(Object caller) {
someCaller = caller;
}
this(testInterface tI, bool xyz) {
someCaller = tI;
}
}
But it is for only storage purposes. I can cast it back to the
Interface later when required.
Thanks
Mandeep
Hey guys,
I'm trying to connect to my mysql-server on windows. I'm using the mysql
binding from http://www.steinmole.de/d/ because as I know the
DDBI project doesn't support D2.
I followed the instructions on the site and first created the lib file with
implib with the following command: implib
Mandeep Singh Brar mand...@brars.co.in wrote:
Hi,
I am not able to assign an interface to object. The following code
does not compile.
module testObj;
public interface testInterface {
void someMethod();
}
public class testObj
{
Object someCaller;
this(Object caller) {
Am 15.01.2011 17:07, schrieb %u:
Hey guys,
I'm trying to connect to my mysql-server on windows. I'm using the mysql
binding from http://www.steinmole.de/d/ because as I know the
DDBI project doesn't support D2.
I followed the instructions on the site and first created the lib file with implib
Trass3r u...@known.com wrote:
module testObj;
public interface testInterface {
void someMethod();
}
public class testObj
{
Object someCaller;
this(Object caller) {
someCaller = caller;
}
this(testInterface tI, bool xyz) {
I just used implib libmysql.lib libmysql.dll /system but it produces
the same errors.
Am 15.01.2011 17:46, schrieb nrgyzer:
I just used implib libmysql.lib libmysql.dll /system but it produces
the same errors.
In the implib help it says:
implib [switches] libfile [ dllfile | deffile ]
I'm not sure but implib could be picky about where the switches are.
Mafi
Thanks, but didn't help to change to implib /system libmysql.lib
libmysql.dll - some errors.
On Sat, 15 Jan 2011 11:34:05 -0500, Simen kjaeraas
simen.kja...@gmail.com wrote:
Mandeep Singh Brar mand...@brars.co.in wrote:
Hi,
I am not able to assign an interface to object. The following code
does not compile.
module testObj;
public interface testInterface {
void
Try this:
implib /s libmysql.lib libmysql.dll
Then change extern(Windows) to extern(C).
(That's how I usually have it set up)
This solved the problems, thanks - but, when the line mysql =
mysql_init(null); produces an access violation.
On 15/01/2011 17:44, Steven Schveighoffer wrote:
snip
Which unnecessarily complicates things. For example, you can't compare
two interfaces (try it!).
?
On Saturday 15 January 2011 20:27:26 %u wrote:
Tracking memory in a modern OS is not easy, and this is probably why no
one
wanted to make a statement on what was really happening.
The issue is that the memory *is* leaking -- it's because the struct
destructor is simply not getting
Hi,
Something has been confusing me, regarding passing around aliases of instance
members.
If I can say:
struct S { int m; }
pragma(msg, (S).m);
How come I can't say:
struct S { int m; }
pragma(msg, __traits(getMember, S, m));
?
What's the difference, and what does each one mean?
Sorry, I just noticed a typo. The line saying
pragma(msg, __traits(getMember, S, m));
should've said:
pragma(msg, __traits(getMember, S, m));
On 01/15/11 10:34, Simen kjaeraas wrote:
Mandeep Singh Brar mand...@brars.co.in wrote:
Hi,
I am not able to assign an interface to object. The following code
does not compile.
module testObj;
public interface testInterface {
void someMethod();
}
public class testObj
{
18 matches
Mail list logo