> - Is it possible to write functions to automatically convert one
> extended type into another? If so, how should this be done?
A function named the same as a type, with one argument of some other
type, is treated as an implicit type conversion rule by the parser.
Just to make sure I understand. Suppose I create two user-defined
types A and B and want interconversions. I will need the following
functions, right?
/* I/O */
A * A_in (const char *);
char * A_out (const A *);
B * B_in (const char *);
char * B_out (const B *);
/* conversions */
A * A (const B *);
B * B (const A *);
Thanks again.
Cheers,
Brook