Question about wchar[]
ollie
ollie at home.net
Mon Feb 4 12:37:59 PST 2013
On Mon, 04 Feb 2013 15:09:06 -0500, Steven Schveighoffer wrote:
> On Mon, 04 Feb 2013 14:45:02 -0500, ollie <ollie at home.net> wrote:
>
>> What is the storage (heap/stack) of "straight assignment" if this were
>> a local variable. Or do you mean that "This is a wchar[]" was already
>> created on the heap as an immutable(wchar)[] then assigned to wstr.
>
> The string is actually stored in code, not on the heap. When you
> assign, you get a pointer right into code (ROM).
>
I seem to remember that now (had a brain fart).
Thank you Jonathan and Steven for your help.
ollie
More information about the Digitalmars-d-learn
mailing list