Boost logo

Boost-Build :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2003-05-07 02:31:12


David Abrahams wrote:

> Modified Files:
> property.jam
> Log Message:
> improve error reporting

> + # need to do this here to get reasonable error messages for
> + # unrecognized implicit features.
> + validate $(p) ;
> +

A small design note. Ultimately, it's better to avoid calls to "validate" at
all. All properties should be represented as instances of property-set class
and validation will happen only when such an instances is created from user
input. E.g. a new rule property-set.create-with-validation can be introduced.

After that, property-set instances is guaranteed to have only valid properties
and all operations with it will leave it valid -- thus, "validate" must be
called only in few places.

What do you think?

- Volodya

 


Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk