[Github-comments] [geany/geany] GI compatible msgwin_*_add (#1748)

elextr notifications at xxxxx
Sat Apr 7 09:46:19 UTC 2018


> > Of course it's for convenience. Imagine writing the following line of code without using any functions with variadic arguments:

> printf("%s is %d", name, age);

```
std::cout<<name<<" is "<<age;
```

Oh, in C!! :grin:

To be fair to GI (what! me saying that!) most languages do not have variadic functions, so the GI has nothing to translate into.  For example what Python (even Cython) would it be specified as?[0]

So it would be a waste of time for GI to parse it anyway since nothing but C and C++ can use it and they can call the C API directly.

[0] actually Python ctypes can call variadic functions as completely untyped functions, but the arguments can't be specified, so GI can't be used, [see](https://docs.python.org/3/library/ctypes.html#specifying-the-required-argument-types-function-prototypes)

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/pull/1748#issuecomment-379457386
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20180407/6b5d75fd/attachment.html>


More information about the Github-comments mailing list