On Wednesday 17 February 2016 18:40:52 you wrote:
> Hello list,
> 
> In some situations, would be very interesting to determine whether the
> value of a primitive variable is initialized or not. For example, fields in
> database records can contain null values. By implementing an ORM, it would
> be interesting to represent these null values in the properties of objects.
> 
> Java has the so called Primitives Class Wrappers, where each primitive type
> (int, boolean ...) has a corresponding wrapper class (Integer, Boolean
> ...). By using class wrappers you can represent null values in primitive
> types through null class instances references.
> 
> Using class wrappers in FPC is not feasible due to memory management issues
> (the programmer needs to worry about the lifetime of the instances and free
> the instances manually).
> 
> Perhaps, a solution in FPC would be using primitive record wrappers with
> custom records operators.
> 
> What do you think about it? Is there any other solution?
> 
> Regards 

I did not read everything. But it seems, that you want to have a function you 
also can program by yourself.
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to