www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Re: SAL at Microsoft

reply bearophile <bearophileHUGS lycos.com> writes:
 Good "pluggable type systems" are a general solution usable for many other
purposes too,

I guess you don't like this, right? If I ask you a special-purpose solution for just printing functions, you answer me that it's a wired solution, etc. If I answer with a more general solution like pluggable type systems, you think it's too much work to implement, etc. So there's no way out. Bye, bearophile
Feb 28 2011
parent reply Adam Ruppe <destructionator gmail.com> writes:
bearophile wrote:
 So there's no way out.

Just accept the few kilobytes of unbearable bloat and use writef, or write the necessary code yourself so all the burden isn't on Walter.
Feb 28 2011
parent reply bearophile <bearophileHUGS lycos.com> writes:
Adam Ruppe:

 Just accept the few kilobytes of unbearable bloat and use writef,

It's not just template bloat, but also the printing bugs not caught at compile time. The point of the first post of this thread was to talk about SAL, that Microsoft seems to consider very important. I think this part was missed, focusing only a little part of the whole.
 or write the necessary code yourself so all the burden isn't on Walter.

I am able to write a printing template that takes the format as template argument, and then tests it and calls writef/writetefln. It will take some more years to be good enough to write a whole compiler for a sizeable language. Bye, bearophile
Feb 28 2011
parent Don <nospam nospam.com> writes:
bearophile wrote:
 Adam Ruppe:
 
 Just accept the few kilobytes of unbearable bloat and use writef,

It's not just template bloat, but also the printing bugs not caught at compile time. The point of the first post of this thread was to talk about SAL, that Microsoft seems to consider very important. I think this part was missed, focusing only a little part of the whole.

You completely missed the point, I think, bearophile. D is not C. It is an important C bug. No doubt about that. And it's such a common, hard to diagnose bug that they have put a massive hack into the compiler to detect it. Make no mistake, that's what it is: it's a hack. A really ugly one. It is not an important D bug. writef doesn't have the problems that printf does. The ugly hack is not justified.
Mar 01 2011