User loginNavigation |
Overloading by return type without typesI wonder if there are any strategies for overloading by a type of a return value in dynamically types languages. There is one example I am aware about - Perl and its "contexts". May be there are some other insights on this topic? Basically I mean run-time dispatch on the return values so that the code like so: //This function is overloaded for int32 maxValue _ = 0x7fffffff x = maxValue 0 can be translated into //Overloaded (polymorphic) constant maxValue = 0x7fffffff x = maxValue ::: Int without the need to statically type the program. By vorov2 at 2012-07-26 19:45 | LtU Forum | previous forum topic | next forum topic | other blogs | 6753 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 21 hours ago
49 weeks 2 days ago
51 weeks 8 min ago
51 weeks 12 min ago
1 year 1 week ago
1 year 6 weeks ago
1 year 6 weeks ago