Re: Do strings move around?
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: Do strings move around?
- From: Gé Weijers <ge@...>
- Date: 2020年8月26日 08:54:29 -0700
On Wed, Aug 26, 2020 at 7:01 AM Roberto Ierusalimschy
<roberto@inf.puc-rio.br> wrote:
>
> > What about strings accessed via upvalue pseudo-indexes?
>
> They should be valid while the corresponding call is active. Documenting
> it is in my "todo" list.
>
> -- Roberto
I hope uservalue objects will never get moved, because it would be
impossible to store most C++ objects in uservalues (only those types T
which have the property "trivially copyable" could be used, which
excludes most interesting C++ types like maps, vectors, lists etc.).
Gé
--
Gé