Re: Str-Kat
- Posted by CChris <christian.cuvier at agric?lture.gouv.f?> May 30, 2008
- 683 views
Shawn Pringle wrote: > > Kat, > > A EUPHORIA string is a sequence that contains integer > values that each represent a character value. EUPHORIA > has a string type as much as C does. > > A string is not dealt seperately as a special type and > it doesn't need to be. > > Unlike both BASIC and C though there are no special > string ops that concatonate, determine the length, and > copy. In EUPHORIA you manipulate strings and arrays > the same way because they are the same. They are all > sequences. And since sequence manipulation is strait > forward so is string manipulation. I wouldn't want > it to be any other way. > > Shawn Pringle Compare the memory overhead and performance hit that general sequences take when compared to raw arrays of bytes/words/dwords in memory, and you will want to have different operators and types. The flexibility of sequences is wonderful. However, sequences of bytes/dwords are a fairly common special case, and there is room for the processing speed and memory footprint to be much, much more optimised. CChris