What @mcabbott said is right. The way this is often worked around is to use list comprehensions:
M = MULTIBODYSTRUCTURE(
collect(deepcopy(bd) for i in 1:MAXBD)
)
What @mcabbott said is right. The way this is often worked around is to use list comprehensions:
M = MULTIBODYSTRUCTURE(
collect(deepcopy(bd) for i in 1:MAXBD)
)