[Mono-list] What is the difference between #String and #US?

Paolo Molaro lupus@ximian.com
Wed, 7 Aug 2002 18:02:57 +0200


On 08/07/02 Holger Arnold wrote:
> is there an exact definition under which conditions a string is stored in 
> either the #String or the #US heap? Is it right that identifiers are stored 
> in the #String heap, and all other strings (e.g. string constants) are stored 
> in the #US heap?

The ECMA spec explains this: #US is for strings referenced by the ldstr
opcode in the bytecode (stored in utf-16). #String has strings stored in
utf-8 (type names etc.).

lupus

-- 
-----------------------------------------------------------------
lupus@debian.org                                     debian/rules
lupus@ximian.com                             Monkeys do it better