symmetryinvestments / autowrap

Wrap existing D code for use in Python, Excel, C#
BSD 3-Clause "New" or "Revised" License
80 stars 16 forks source link

Python ref/out parameters don't work for free functions #202

Open atilaneves opened 4 years ago

atilaneves commented 4 years ago

For instance, for std.numeric:

    from std_numeric import decimal_to_factorial
    fac = [0] * 21
    idx = decimal_to_factorial(2982, fac)
    assert idx == 7
    assert fac[:idx] == [4, 0, 4, 1, 0, 0, 0]  # fails