On Monday, 04/29/2002 at 08:46 MST, "Samar Lotia" <[EMAIL PROTECTED]>
wrote:
> how would we guarantee that  nobody is going
> to change the memory that this DOMString is pointing to?

Valid question. The DOM doesn't experess an opinion; from their point of
view, this falls in the category of "if it hurts when you do that, don't do
that."  But this does point out that there's some advantage to specifically
using an immutable string type here... which may in fact be an argument for
a DOMString type, so it can be given its own interface.  But there's a
question of computational overhead in attempting that solution, and there's
a perennial demand to make the code faster. (And more featureful, AND more
compact, AND more memory-efficient... you folks want everything, don't you?
<grin/>)

(If someone cast the DOMString to its base type and then changed it --
well, you can't stop a skilled and determined C hacker from building
foot-shaped guns.)



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to