Re: Yet more OPTLINK woes

2010-05-13 Thread Daniel Keep
Some general replies: There have been three responses along the lines of are you sure OPTLINK is running?. Quoting myself: Invoking OPTLINK directly changes nothing. Or to be more specific: link AstTest,AstTest,,user32+kernel32/noi+tango.lib; (zero-byte .map file pops into existence) Yes,

Re: unittests and templates

2010-05-13 Thread Steven Schveighoffer
On Wed, 12 May 2010 18:54:20 -0400, bearophile bearophileh...@lycos.com wrote: Steven Schveighoffer: class ArrayList(V) { V take() {...} unittest { auto al = new ArrayList!uint; ... That unit test is the test of just take(). [snip] I don't have other ideas for you.

Re: Export values (enum, int, char[]...) for DLL

2010-05-13 Thread Nrgyzer
Nrgyzer Wrote: torhu Wrote: On 06.05.2010 16:06, Nrgyzer wrote: Thanks, but doesn't work :( My files contain: mydll.d: module mydll; export extern int i; mydll2.d: module mydll; export int i = 7; test.d: import mydll; import std.stdio;

Re: Export values (enum, int, char[]...) for DLL

2010-05-13 Thread torhu
On 13.05.2010 18:23, Nrgyzer wrote: Nrgyzer Wrote: dmd now exports all values successfully. But when I try to export a class, I get the following errors: Error 42: Symbol Undefined _D5mydll1t7__ClassZ Error 42: Symbol Undefined _D5mydll1t5_ctorMFZC11mydll1t Source of mydll.d is: export class

Re: Yet more OPTLINK woes

2010-05-13 Thread div0
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Daniel Keep wrote: Well, except for this: _D11TokenStream808d8d5_ctorMFC6Sourcef6P809091 DFS8Location808989AaYvJS68085cfs5f4Zb80 99aaZC819a87 (broken across 3 lines; xx are bytes in hex since several of them were non-printable.) As

Re: Yet more OPTLINK woes

2010-05-13 Thread torhu
On 13.05.2010 10:39, Daniel Keep wrote: Attached both regular and decaffeinated^Hgutted versions. Most likely DMD turns VisitorCtfe.d into an invalid object file. But since you don't need to link with objects that contain only ctfe functions... Here's what I get: --

Re: Yet more OPTLINK woes

2010-05-13 Thread torhu
Seems I've got an older version of optlink, 8.00.1. With 8.00.2 I get the same behavior you did, but it still works if you don't link with VisitorCtfe.obj. When running 8.00.2 in the msvc debugger, it just looks like optlink successfully exits. No crash or anything. But no useful output

Re: Assertion failure: 'fieldi=0 fieldi se-elements-dim' on line 2062 in file 'interpret.c'

2010-05-13 Thread strtr
Don Wrote: strtr wrote: Killed it again :( Are you using the latest DMD? I was/am using 1.060 If so, please try to create a test case, as this bug has never been reported before. Thanks! Had to put some time into actual coding.. but I just tried to create a test case: Removed the few