Patrick Reisert

Results 137 comments of Patrick Reisert

I looked into this a little more and found that e.g. the XML DOM classes in `Windows.Data.Xml.Dom` don't have the `DualApiPartition` attribute, but they can be used from desktop apps...

How this is done in the modern C++ projection is nicely explained in https://www.youtube.com/watch?v=lm4IwfiJ3EU#t=31m40s

Another point to consider: Versioned interfaces such as `ILauncherOptions2` and `ILauncherOptions3` are added in newer releases, when only `ILauncherOption` exists originally. This means that a newer SDK will know these...

Parent interfaces (and the main interface of classes) work through `Deref`, for other interfaces we probably need `Into`/`From`.

I think I haven't done that so far because `std::error::Error` has some deficiencies (which is why https://github.com/rust-lang-nursery/failure is a thing). I'm not sure if we are able to support both....

I started working on this in a branch: https://github.com/Boddlnagg/winrt-rust/tree/constfn-pinterface However, `const fn` support is not yet capable of everything that we need for it to work.

Maybe we can make use of the metadata reader implemented as part of https://github.com/Microsoft/xlang (https://github.com/Microsoft/xlang/tree/master/src/library/impl/meta_reader), which is written in modern C++ and could probably be ported to Rust easier than...

Yes, the project was announced only yesterday on the author's blog (same author as cppwinrt): https://kennykerr.ca/2018/10/10/xlang/

We probably can also hide much of the generated code behind procedural macros now that they are stable (though that arguably means that someone who wants to understand what actually...

I'm working on a Rust port of xlang's meta_reader (https://github.com/Microsoft/xlang/tree/master/src/library/impl/meta_reader), but have nothing to show yet.