Re: A note on constant strings

2004-09-08 Thread Leopold Toetsch
Dan Sugalski wrote: Or, rather, the const_string function. Simple thing, looks like: STRING *foo = const_string(interpreter, c-style string constant); Easy, right? Yeah. Easy. Well, the real constant string is constructed like so: STRING *foo = CONST_STRING(interpreter, cstring); These

Re: A note on constant strings

2004-09-08 Thread Dan Sugalski
At 8:52 AM +0200 9/8/04, Leopold Toetsch wrote: Dan Sugalski wrote: Or, rather, the const_string function. Simple thing, looks like: STRING *foo = const_string(interpreter, c-style string constant); Easy, right? Yeah. Easy. Well, the real constant string is constructed like so: STRING *foo =

A note on constant strings

2004-09-07 Thread Dan Sugalski
Or, rather, the const_string function. Simple thing, looks like: STRING *foo = const_string(interpreter, c-style string constant); Easy, right? Yeah. Easy. What it does is create a new parrot string, set to the constant C string you pass in. Handy. Even marks the string as constant and