haxscramper
haxscramper
Feel free to add it to any manual section, but after releasing alpha version of hcparse I wanted to spend some time summarizing all my solution in a series of...
```nim method toOverride(derived: CxxDerived2): cint = echo "Overide method impementation from nim side" return 1231.cint echo newCxxDerived2().toOverride() ``` does not work as it fails with C++ codegen compilation error ```c++...
Well, the issue seems obvious - object is not derived from a `RootObj` so it does not have an `m_type` field. Since I also want to derive from C++ issue...
Alternatively to hacks (generating byref types or bruteforce solutions with copypasting every method) I can just require explicit type conversion using 'as' operator - ```nim var slider = cnewQSlidwe() slider.as(QWidget)[].someQWidetMethod()...
Generation of the org-mode/haxdoc comments seems like an optimal solution. I can later add support for `nim doc`.
After some testing with codegen I think it is the best solution overall, but there are some issues, like making nim-declared types available in generated C++ code. If `NewCxx` uses...
```nim const h = "wrap_inner.hpp" type P[T] {.importcpp: "P", header: h.} = object # Have to declare additional object, cannot port procedures/fields of # `P`. When compiled to C++ this...
Current implementation of dependency resolution does not construct explicit dependency graph, and instead just loops https://github.com/nim-lang/nimble/blob/95e6870f60655e81ff488779c7f589fe649061ec/src/nimble.nim#L64 though requirements, almost immediately installing them https://github.com/nim-lang/nimble/blob/95e6870f60655e81ff488779c7f589fe649061ec/src/nimble.nim#L84-L86 which I believe to be the source...
Approximate current stats for nimble package requirement specifications: ``` total package count: 1565 processing ok: 1382 not using github: 51 http error when getting: 87 configuration parse fail: 19 verLater...