Standing on the shoulders (well, maybe feet) of giants
[ start | index | login or register ]
start > Value Type Constructor

Value Type Constructor

Created by Dirk Riehle. Last edited by Dirk Riehle, 2 years and 175 days ago. Viewed 154 times. #2
[diff] [history] [edit] [rdf]
labels
attachments
A value type constructor is a class that requires parameters (like a template or a a generics) to give you a specific value type. Java, doesn't really support that well. You can use generics, but much of what you might want to express can't be handled using this. Basic functionality like known from Pascal is still missing. For example, you can't express ranges like
int[1..12] months;
you can't do subsets, and you can barely do enums now.
no comments | post comment
Copyright (©) 2006 by Dirk Riehle or the respective authors. All rights reserved.