gnue-dev
[Top][All Lists]
Advanced

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

Re: [Gnue-dev] type (not class) in .gcd files


From: Neil Tiffin
Subject: Re: [Gnue-dev] type (not class) in .gcd files
Date: Thu, 9 May 2002 19:54:56 -0400

In packages/base/currency/classes/currency/currency.gcd, there is:

  # -------------------------------------------------------------------------
  # money - TYPE definition of money.
  # -------------------------------------------------------------------------
  type money

What is special about types? As they have no methods and are just
replaced instead of a type definition mentioning them, how are they
stored? In data columns in the table for the class of which they are a
a member?

types are expanded in a way that the type definition disappears and the data definitions are inserted directly into the object. They were a shorthand for assuring consistent usage of groups of data definitions such that they would be consistent throughout the design (by only being defined once.) Therefore if the base design (type) was changed it would automatically be changed throughout.

Neil
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]