User loginNavigation |
Simple type system oriented questionI'd think I want to allow a function with this type: proc(class T cls) : T And I want such functions to support type subclasses. For a simple instantiating example: proc myfun(class Employee empcls) : Employee Where class Manager(Employee) Is this "principle of least surprise"? commonplace? or are there gotchas I'm not thinking about. Thanks much. Scott By scottmcl at 2008-04-13 03:03 | LtU Forum | previous forum topic | next forum topic | other blogs | 4172 reads
|
Browse archives
Active forum topics |
Recent comments
22 weeks 6 days ago
22 weeks 6 days ago
22 weeks 6 days ago
45 weeks 19 hours ago
49 weeks 2 days ago
50 weeks 6 days ago
50 weeks 6 days ago
1 year 1 week ago
1 year 6 weeks ago
1 year 6 weeks ago