[Github-comments] [geany/geany] GI compatible msgwin_*_add (#1748)
Matthew Brush
notifications at xxxxx
Sat Apr 7 09:59:27 UTC 2018
> To be fair to GI (what! me saying that!) most languages do not have variadic functions, so the GI has nothing to translate into.
Python:
```python
def foo(*args):
for a in args:
print(a)
```
JavaScript:
```js
function foo(...args) {
for (let a of args)
print(a);
}
```
Ruby:
```ruby
def foo(*args)
for a in args
print a
end
end
```
Vala:
```vala
void foo(...) {
foreach (var a in va_list())
print(a);
}
```
--
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-379458090
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20180407/7e2a8780/attachment.html>
More information about the Github-comments
mailing list