bug-gawk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug-gawk] Does substr make a hard copy of the input string?


From: Peng Yu
Subject: [bug-gawk] Does substr make a hard copy of the input string?
Date: Wed, 7 Nov 2012 23:04:52 -0600

Hi,

I don't find it in the document. Does anybody know whether substr()
makes a hard copy of returned substr from the input string? Or the
returned result still has a reference of the input string (but just
with start and end adjusted)?

Depending on which alternative it is, I think that it may have
different implications for the runtime when the input string and the
substring are long.

-- 
Regards,
Peng



reply via email to

[Prev in Thread] Current Thread [Next in Thread]