develooper Front page | perl.perl6.internals | Postings from October 2001

Re: String comparison ops

Thread Previous | Thread Next
From:
Tom Hughes
Date:
October 10, 2001 01:43
Subject:
Re: String comparison ops
Message ID:
yekofnf7unt.fsf@elva.uk.cyberscience.com
In message <00b001c15166$a3b88ee0$7f03ef12@MLAMBERT>
        Michel Lambert <mlambert@legendent.com> wrote:

> Am I missing something here, or does this code not properly free transcoded
> s1's and s2's after it's done comparing them?

You're quite right that it doesn't, but neither does anything else
that creates temporary strings in a different encoding ;-)

As we're using garbage collection we shouldn't need to do an explicit
free though surely - in fact I'm not quite sure why string_destroy
even exists...

It's easy enough to add some frees if they are needed though.

Tom

-- 
Tom Hughes (tom@compton.nu)
http://www.compton.nu


Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About