• Kevin Modzelewski's avatar
    Some initial refactoring work for arg passing · 9a33763c
    Kevin Modzelewski authored
    Replace a simple "num_args" argument with a packed struct that takes
    num_args and adds num_keywords, has_varargs, and has_kwargs.  Tried
    to add asserts in all the places that don't allow
    keywords/varargs/starargs
    
    Started refactoring things; got to the point of attempting
    argument->parameter shuffling, but it's tricky if we allow every
    compilation to have a different signature (used by builtins).
    Really they all have the same signatures but different
    specializations; to get to that point, need to add defaults.
    9a33763c
func_arg_passing.py 191 Bytes