[Closed] Proper use of using struct in other struct
I have a view struct that use like library.
I don’t want struct a in struct b because struct a can be used in struct c, too.
As of now I hust have like this
struct a (
…
)
struct b(
fn dothis = (
local insofa = a()
)
)
It works, but would be there more “proper” way?
I don’t necessarily see a problem with this. I don’t see why you can’t use the struct A in B & C … just like you can have two plugins that both have a function or property that utilizes a Polyop Struct.
Please explain why you find this improper in any way. B has a dependency on A. That doesn’t prevent C from having a dependency on A.
http://forums.cgsociety.org/showpost.php?p=7230692&postcount=22
i suggest to read the whole thread.
and here is a tip: http://forums.cgsociety.org/showpost.php?p=7609523&postcount=1