Reminders



o. Document, specify and implement removing the observers of a folder
(both folder and store observers) in case a parent has removed it.

o. Do Eifel style design by contract in the interface's .c files (like
in tny-folder.c). Proposal:

type_t*
tny_method (TnyType *self, int input)
{
  type_t *retval;

#ifdef DBC
  prop_t *unchanged;
  g_assert (input == required input value);
  unchanged = tny_type_get_other_property (self);
#endif

  retval = GET_INFACE (self)->method (self, input);

#ifdef DBC
  g_assert (retval == required return value);
  g_assert (tny_type_get_other_property (self) == unchanged);
  g_object_unref (unchanged);
#endif

  return retval;
}




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]