On Fri, 25 Jun 2004, Nick Ing-Simmons wrote:
> Nicholas Clark <[EMAIL PROTECTED]> writes:
>> My only thought is should the API be full SVs, or char pointer plus
>> utf8/not flag? (possibly as 1 bit in a flags word)
>
> My gut reaction is that the char * + flag would be easier to shoe-horn
> into existing code base.

I don't know. The main advantage of not passing the SV* is that this
doesn't leave any gnawing doubts if you still have to worry about
calling mg_get() or not. :)

I noticed that many functions need to call strlen() on the char*
argument, which seems wasteful since we already know the length
in the SV.  But I know that it doesn't really matter.

Cheers,
-Jan



Reply via email to