Using `...` syntax and `--trim`

apozharski
Thu, 16 Oct 2025 10:42:57 +0000
General Usage

Hello,

I am working on a package for building c interfaces for an NLP solver packages and have run into something of an impasse regarding the --trim functionality and calling functions with keyword arguments which need to be populated at run time.

The situation is this: I have a options::T where T <: AbstractDict{Symbol, Union{<Some stuff>}}, populated by the c user at run time, which contains the keyword arguments I would like to pass to the constructor of the underlying options type. However, it seems that none of the obvious ways (that is ...) interact well with the --trim=safe flag in JuliaC.jl, and run into issues with unresolved calls to _apply_iterate (I assume related to Support resolving dispatch in `apply_iterate` for variable-length containers (`Tuple{Vararg{T}}` and `Vector{T}`) · Issue #57830 · JuliaLang/julia · GitHub).

Is there any way to use the ... syntax and retain the ability to use --trim? Am I missing something?

5 posts - 3 participants