DDBI and MySQL

Chris R. Miller lordSaurontheGreat at gmail.com
Fri Aug 29 20:08:18 PDT 2008


Fawzi Mohamed wrote:
> On 2008-08-29 09:47:30 +0200, "Chris R. Miller"
> <lordSaurontheGreat at gmail.com> said:
> 
>> [...]
>> Once I got that cleared up, I started a bunch of "cannot implicitly cast
>> foo* to foo*" errors, which mystified me.  I think it's because one is
>> tossing an alias of something to something that's expecting the
>> un-aliased something, and so it's having some issues.
>>
>> So attempting to fix the issues didn't work terribly well.  I beat
>> through a few pointer issues to get hung up on a weird pointer issue
>> which emits this error:
>>
>> dbi\mysql\MysqlDatabase.d(194): constructor
>> dbi.mysql.MysqlResult.MysqlResult.th
>> is (st_mysql_res*) does not match parameter types (st_mysql_res*)
>> dbi\mysql\MysqlDatabase.d(194): Error: cannot implicitly convert
>> expression (cas
>> t(st_mysql_res*)*results) of type st_mysql_res* to st_mysql_res*
>>
>> I'm pretty puzzled.  I've tried casting it explicitly, and it doesn't
>> work.  I'd really appreciate it if someone knew what is going on.  When
>> I explicitly cast it, it still give the same error.
> 
> I had a similar error today in my template code with int* and int* (I
> think also connected with aliases and nesting of templates).
> I haven't distilled it yet, but using
> 
>     cast(T*)(cast(size_t)a+cast(size_t)b)
> 
> in my case fixed the issue...
> 
> Fawzi

Glad it worked for you!  I wasn't so lucky.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 258 bytes
Desc: OpenPGP digital signature
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20080829/3b75512a/attachment.pgp>


More information about the Digitalmars-d mailing list