I found something what I don't understand.
Here is a simplifed code with comments:
http://dpaste.dzfl.pl/a914d11a
I creating anonymous delegates, whose function is to modify their
parameter. Their parameters are different class references.
I pass these class references to anonymous delegates,
Hi all!
I've spend several hours to solve my problem, and I did it!
But don't know why it is worked in this way:
I'd like to modify all fields of an object by a specific values
(for deserialization).
public ref T foo(T)() {
T *ret = new T;
// DON'T WORK
// Looping
Thanks a lot Ali, I understand now!
Philippe, based on what Ali said, your code will give exactly the
same result because it looping through a local copy of
ret.tupleof.
\druntime\import -gc
-debug -unittest -w -wi
/code
In the db.d, if I remove the PreparedStatement's destructor, it
compiles.
Here's the source code:
http://dl.dropbox.com/u/11700363/ikonBoarD.rar
I hope I could help.
Sharp