R: R: [AD] Config routines, alpha 5

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


> Maybe it should try to convert variable with unknown types to 
> temporary string, and then try to convert that string to the 
> destination type?  Conversions to/from strings should be 
> always defined anyway, so it would make it easier to extend 
> configuration system with new types, without the need to 
> write all conversions for them (only conversions to/from 
> string will be required).

An entry is of ENTRY_TYPE_UNKNOWN type only if A) the entry doesn't
really hold a variable, but it just has a read/write hook (this is the
case when you just add an hook to a "directory", but you never use the
directory key itself to store a variable) or B) there's an error in the
config system.
So IMO it makes no sense to worry about any conversion from the unknown
type...

--
Angelo Mottola
a.mottola@xxxxxxxxxx
http://www.ecplusplus.com



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/