On 07/28/2011 12:25 PM, Yang wrote:
> but I guess I can't simply access a record field by
> 
> my_record_obj.my_field_name
> 
> and hope to get the default value , right? but then how can the
> default value be obtained?

Default values are used when reading a different version of the record
that does not contain the field.  So if you add a new integer field
whose default value is -1, then read a record written before that field
was added, the old record will contain -1 as the value for the new
field.  Implementations might also use the default value to initialize
values when creating new record data structures, but that's not required.

Doug

Reply via email to