A use case for fromStringz

spir denis.spir at gmail.com
Sat Apr 16 01:50:15 PDT 2011


On 04/16/2011 06:55 AM, Andrej Mitrovic wrote:
> I wonder.. in all these years.. have they ever thought about using a
> convention in C where the length is embedded as a 32/64bit value at
> the pointed location of a pointer, followed by the array contents?

Sometimes called "Pascal strings" (actually, IIRC, the length is at the address 
/before/ the one pointed by the pointer). One of the important diffs between C 
& Pascal from the practical pov.
Actually, it's the same diff as C arrays vs true arrays like D's.

Denis
-- 
_________________
vita es estrany
spir.wikidot.com



More information about the Digitalmars-d-learn mailing list