
11 May
2007
11 May
'07
7:49 a.m.
Hi Duncan, Duncan Coutts schrieb:
I was wondering what the need for ensureBufferSize is? Could this by automated? I would have thought that we could just check this when writing out a single instruction.
Yes, of course, this would be possible. The only reason is a performance improvement when checking for buffer overflows as seldom as possible. We use Harpy in a just-in-time compilation project for a functional language, an my colleague wants to do this as fast as possible. But one could argue that in a functional language library interface elegance is more important... Kind regards, Dirk