3 ms·
Hi Walter, I have two questions: 1. Why do functions need to be annotated with @safe and nothrow in betterC? Why not make them default? I understand making it
by arunc 6y ago
Hi Walter, I have two questions:
1. Why do functions need to be annotated with @safe and nothrow in betterC? Why not make them default? I understand making it default for non-betterC might break some code.
2. string type was uniform and awesome until it was treated as Unicode. Any plans to fix this and remove auto decoding? That would be awesome.
Edit: three questions to two. I had another question about using threads in betterC. But looks like we can't use D threads as they are runtime dependent.
- WalterBright 6y ago1. Making the defaults different between D and betterC would result in an impedance mismatch that would cause more trouble than it is worth. 2. I think you're referring to autodecode. There is an effort ongoing to extricate us from that, but it's difficult while maintaining backwards compatibility. 3. That's right. You'll have to use C threads.