On 26-04-2012 13:37, Kagamin wrote:
On Wednesday, 25 April 2012 at 14:32:13 UTC, Alex Rønne Petersen wrote:
You're missing the point. D is providing (or trying to provide) a
standard inline assembler, but calling conventions are not
standardized enough for it to be useful across compilers. If you're
writing inline assembly because you *have* to, you don't just "version
it out", you have to write different logic for different compilers,
which is a maintenance nightmare.

Don't implement complex logic in assembly, extract it to D or C code.

Look, your argument is just plain invalid. Please reread what I said: "[...] If you're writing inline assembly because you *have* to [...]". Notice the emphasis. And even if we disregarded that, the language boasts a standardized inline assembler, and therefore needs to actually make it sane to use it. As it stands, we're no better than C and C++, yet we claim we are.

--
- Alex

Reply via email to