develooper Front page | perl.perl6.internals | Postings from July 2002

Re: Mutable vs immutable strings

Thread Previous | Thread Next
Dan Sugalski
July 10, 2002 13:05
Re: Mutable vs immutable strings
Message ID:
At 10:21 AM -0700 7/10/02, John Porter wrote:
>Dan Sugalski wrote:
>>  I'm not sure that the place to enforce read-onlyness is at the
>>  string/buffer level. Doing it at the PMC level is more likely the
>>  right place to do it.
>Yes; but what about non-PMC variables?

Generally speaking, there aren't any. Everything else (in this case 
the buffer/string things) is for internal use only. Languages aren't 
supposed to expose strings directly.

--------------------------------------"it's like this"-------------------
Dan Sugalski                          even samurai                         have teddy bears and even
                                       teddy bears get drunk

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About