autowrap
autowrap copied to clipboard
Wrap existing D code for use in Python, Excel, C#
This function doesn't mutate the Python arguments: ```d export void outArrayParam(out int[] ints) { ints ~= 42; } ```
```d struct Socket { void send(const(void)[]); } ```
Due to the `toString` overload that takes a sink delegate.
https://github.com/ariovistus/pyd/blob/master/infrastructure/pyd/embedded.d The above is pyd code that enables this ``` ; -- | | /+ | + Things we want to do: | + * run python code in D...
I want to replace step by step a large c sharp codebase. 800k sloc! I need to be able to take csharp classes and interfaces as parameters and return type....
Ref is always really const ref in xenon. Its very annoying, but he didn't want to listen. Too much and too difficult to change right now.
Typically you either want to wrap custom code and if it fails then fail hard. Or you want to do best efforts on a large piece of code you don't...
See test_issue_44 in test_issues.py
With pyd, this D code: ```d void fun(int i, int j, int k=2, int l=3) { } ``` Is callable in Python with any of: ```python fun(0, 1) fun(0, 1,...