If you have passed an object to the C land, you anyway can’t guarantee that it will not modify your data as discussed earlier. If it’s all Julia code, your friend can just use an immutable type, and you can make an auto conversion rule from your mutable type to immutable.
1 Like