Quantcast
Channel: Visual COBOL - Forum - Recent Threads
Viewing all articles
Browse latest Browse all 4356

RE: Nullables

$
0
0

The compiler does not currently have any specific support for nullable types, though this could certainly be a useful enhancement.  It does have support for the use of implicit and explicit conversions and System.Nullable<T> defines an implicit conversion from type T to System.Nullable<T>.  This means that you can replace the set statement in your example by:

        set testDecimal to 0 as decimal

...and the correct conversion code will be generated.

I will investigate better support for nullable types for a future compiler release.


Viewing all articles
Browse latest Browse all 4356

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>