Skip to content

Describe how to export downstream #21

@mmikhasenko

Description

@mmikhasenko

Here is what I do in FourVectors.jl

# Access the list of function names
const ALL_GETTER_FUNCTIONS = vcat(
    collect(LorentzVectorBase.FOURMOMENTUM_GETTER_FUNCTIONS),
    collect(keys(LorentzVectorBase.FOURMOMENTUM_GETTER_ALIASSES)),
)

# Loop over each function name and import and export it
for func_sym in ALL_GETTER_FUNCTIONS
    # Import the function from LorentzVectorBase
    @eval import LorentzVectorBase: $(func_sym)
    # Export the function from this module
    @eval export $(func_sym)
end

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions