Changes between Initial Version and Version 2 of Ticket #82
- Timestamp:
- Jun 22, 2022, 2:51:38 PM (2 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #82 – Description
initial v2 1 1 The following example currently chooses the signed ?-?, but should choose unsigned ?-?. I believe it’s getting there because it delays the conversion cost for arguments until getting to bsearch, so by this point signed ?-? and unsigned ?-? are still both candidates, and unsigned ?-? fails because E is bound to unsigned and signed */unsigned * do not unify. 2 2 {{{ 3 forall( dtypeE ) void bsearch( E key, const E * vals );3 forall( E ) void bsearch( E key, const E * vals ); 4 4 signed int ?-?( signed int, signed int ); 5 5 unsigned int ?-?( unsigned int, unsigned int );