On 01/15/11 10:34, Simen kjaeraas wrote:
> Mandeep Singh Brar 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
>> {
>>
Sorry, I just noticed a typo. The line saying
pragma(msg, __traits(getMember, S, m));
should've said:
pragma(msg, __traits(getMember, S, "m"));
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?
(I'
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 getti
> 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 called. If I call free() manually, the memory usage decrease
On 15/01/2011 17:44, Steven Schveighoffer wrote:
Which unnecessarily complicates things. For example, you can't compare
two interfaces (try it!).
?
This solved the problems, thanks - but, when the line "mysql =
mysql_init(null);" produces an access violation.
Try this:
implib /s libmysql.lib libmysql.dll
Then change extern(Windows) to extern(C).
(That's how I usually have it set up)
On Sat, 15 Jan 2011 11:34:05 -0500, Simen kjaeraas
wrote:
Mandeep Singh Brar 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
{
Objec
Thanks, but didn't help to change to "implib /system libmysql.lib
libmysql.dll" - some 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
I just used "implib libmysql.lib libmysql.dll /system" but it produces
the same errors.
Trass3r wrote:
module testObj;
public interface testInterface {
void someMethod();
}
public class testObj
{
Object someCaller;
this(Object caller) {
someCaller = caller;
}
this(testInterface tI, bool xyz) {
someCaller = tI
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
Mandeep Singh Brar 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) {
som
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
But it is for only storage purposes. I can cast it back to the
Interface later when required.
Thanks
Mandeep
module testObj;
public interface testInterface {
void someMethod();
}
public class testObj
{
Object someCaller;
this(Object caller) {
someCaller = caller;
}
this(testInterface tI, bool xyz) {
someCaller = tI;
}
}
Sho
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 "foo
19 matches
Mail list logo