[svn:parrot] r37999 - branches/packfile_revamp/docs/pdds
Vasily Chekalkin
bacek at bacek.com
Sun Apr 12 08:04:01 UTC 2009
Reini Urban wrote:
>> Log:
>> Remove uuid_length from public Packfile attributes.
>>
>> "But anyone who cares about the length of the UUID can just go grab the
>> string and then get it's length." (c) jonathan
>
> Veto:
> That would disallow 0 as uuid_data. Using it as NULL-terminated is
> just optional.
>
> header->uuid_size is an important atribute for uuid_type = 1, in the
> reader and in the writer.
>
For the record - uuid is STRING, not cstring. So, if you'll create it as
'\0' it will have length 1 and will be stored and fetched properly.
Test for this behaviour added in r38079.
--
Bacek
More information about the parrot-commits
mailing list