Re: on databinding and programming languages

> >  type myInteger is range 10000 .. 99999;
> 
> Even though these sorts of constraints are not natively supported by the 

> class based languages such as C++ and Java, they can be readily applied 
> through the use of accessor methods for get() and set().  They can also 
be 
> applied during unmarshalling.  Even languages such as C, which can't 
control 
> access to private variables in the same way that C++ and Java can, can 
apply 
> the constraints at marshalling time (possibly a case of better late than 

> never!).
> 
> Hence for most languages such constraints should not be a problem.

+1. Don't forget constructors, as well.

pvb

Received on Thursday, 29 December 2005 23:51:17 UTC