# Why is ccall syntax?

**URL:** <https://discourse.julialang.org/t/why-is-ccall-syntax/72427>\
**Category:** General Usage\
**Tags:** ccall\
**Created:** [December 2, 2021, 4:41am UTC](https://discourse.julialang.org/t/why-is-ccall-syntax/72427 "2021-12-02T04:41:16Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![jzr](https://avatars.discourse-cdn.com/v4/letter/j/eb9ed0/32.png) [@jzr](https://discourse.julialang.org/u/jzr)\
**Post date:** [December 2, 2021, 9:00am UTC](https://discourse.julialang.org/t/why-is-ccall-syntax/72427/6 "2021-12-02T09:00:51Z")

</div>

Is it possible to splat into `@ccall`?

```julia
@ccall printf("%d\n"::Cstring, $((i::Cint for c in 1:5)...))::Cint
ERROR: LoadError: ArgumentError: args in @ccall need type annotations. '$((i::Cint for c = 1:5)...)' doesn't have one.
Stacktrace:

```

---

_[View the full topic](https://discourse.julialang.org/t/why-is-ccall-syntax/72427)._
