On Tuesday, 27 January 2026 at 20:26:56 UTC, monkyyy wrote:
On Tuesday, 27 January 2026 at 16:38:08 UTC, Lars Johansson
wrote:
This is a prestudy for map&reduce.
strings are the foot gun, use ints and write your own,
*unannotated* and simple to understand.
I'm not sure I follow:
I had to convert int to string to be able to (i)dup, and I had to
dup to transfer the SQLIte data to main.
row[0].as!int.idup or row[0].idup result in
Error: none of the overloads of template `object.idup` are
callable using argument types `!()(ColumnData)`
I tried a lot but nothing but row[0].as!string.idup worked.
In general programming with D has been a pleasent experience. BUT
templates, I do not get it. Instead of having well defined
types, it seems you can have anyting with as!.
And the error msg does not tell me anything.
And how do I know I should use e.g. 'as!quirky' in some special
case?
Or are there a small set of well defined as! along with the types?
I am still very ignorant of D, so this might be just plain
stupid. If so tell me.
I will now try to learn how to use a debugger.