Created
January 18, 2013 19:02
-
-
Save jaytaph/4567305 to your computer and use it in GitHub Desktop.
parse_args
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dll *given; | |
hash *needed; | |
given_count = given->size; | |
needed_count = needed->size; | |
// Three different situations | |
// 1. given_count is equal to need_count | |
// - Always OK. Map normally | |
// 2. given_count < need_count | |
// - OK when rest has default values | |
// 3. given_count > need_count | |
// - OK when typehint of last needed is ... (placed inside a single hash) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment