The new import expression

Olli Aalto odeamus at dystopia.fi
Tue Feb 13 12:30:50 PST 2007


Hi!

I started experimenting with the new import feature in 1.005. I thought 
to test if I could get a simple compile time resource loading scheme 
going for a small game, but I'm getting access violations when using the 
data block returned by the import.

I'll attach the module I wrote to test this. It uses derelict for SDL.
The access violation happens on the line containing the call to IMG_Load_RW.

Am I doing it wrong or does SDL have a problem with this? Or is this 
something that's not even supposted to work yet?

Thanks,
Olli
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: main.d
Url: http://lists.puremagic.com/pipermail/digitalmars-d-learn/attachments/20070213/09f0298f/attachment.txt 


More information about the Digitalmars-d-learn mailing list