May
6
answered Does GNU Global/gtags support taglist vim plugin?
May
4
awarded Yearling
May
4
awarded Yearling
Apr
28
comment Calculate Italian fiscal code (tax code) in C#
Sure. On wikipedia you can find the translation of the algo as defined in the law's text: - Please be aware that if I'm not mistaken there may be cases of conflicts in which the code is manually overridden (for instance picking a different letter for the name)
Jan
22
awarded Good Answer
Jan
21
comment auto save vim session on quit and auto reload session on start
this is unrelated to the question, but if you want to protect yourself from unexpected disconnections you may want to look into tmux or similars :)
Jan
18
comment Nested anonymous namespaces
I also think that the second top level namespace name will be unique1, not unique3, from "all occurrences of unique in a translation unit are replaced by the same identifier".
Nov
10
accepted Why is this template inference failing
Nov
10
asked Why is this template inference failing
Oct
15
comment How to mock standard library functions in D
Sergei you're right: I didn't think it through and was going to complicate my life. Adam please write it as an answer so i can accept it.
Oct
15
comment How to mock standard library functions in D
thanks for the idea, but if I go down this road I'd prefer to wrap the used std functions in some object and use a factory to decide whether to instantiate the real object or the mocks. I'm still looking for a more 'surgical' solution :)
Oct
15
awarded Curious
Oct
14
accepted Reset I2C slave chip when master goes away
Oct
14
asked How to mock standard library functions in D
Oct
14
comment Reset I2C slave chip when master goes away
So basically I need a second uC doing the work on the slave side, am I correct? Power consumption is not really an issue here.
Oct
13
asked Reset I2C slave chip when master goes away
Oct
11
comment How to declare a pointer to a template function in D lang?
yes I understand the reason of the error. I was just wondering if, given the fact that all the assignments are known, the compiler could not track down each assignment, verify the return type, and complain if it's not consistent. Clearly it does not. Thanks a lot for the explanation, though :)
Oct
10
comment How to declare a pointer to a template function in D lang?
It could, but it doesn't: my expectation would be that if the compiler finds two mismatching functions it chokes (a bit like in this case: pastebin.com/8Tf5TdPQ) But maybe I'm just missing something: I'm super new to the language.
Oct
10
comment How to declare a pointer to a template function in D lang?
It does solve the problem :-), albeit I was expecting that the compiler would have been able to deduce the return type, both the functions being present and returning an array of string.
Oct
10
accepted How to declare a pointer to a template function in D lang?
1 2 3 4 5