Question about anonymous delegates.

2012-10-03 Thread Sharp
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,

ref fields of .tupleof

2012-05-29 Thread Sharp
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

Re: ref fields of .tupleof

2012-05-29 Thread Sharp
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.

private struct's destructor causes internal error during compilation

2012-03-12 Thread Sharp
\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