how to program a lib A that depends on another lib B that depends on lib A
how to program a lib A that depends on another lib B that depends on lib A
i know how to do this in c or cpp but with gambas ??? no idea
Re: how to program a lib A that depends on another lib B that depends on lib A
I think you just reference each library in the other library's list.
See my post: https://captainbodgit.blogspot.com/2019 ... aries.html
See my post: https://captainbodgit.blogspot.com/2019 ... aries.html
Re: how to program a lib A that depends on another lib B that depends on lib A
no because they can't compile ...
lib A uses libB.job() ... and lib B uses libA.job()
so i cant compile lib A to reference within lib B and i cant compile lib B to reference within lib A
lib A uses libB.job() ... and lib B uses libA.job()
so i cant compile lib A to reference within lib B and i cant compile lib B to reference within lib A
Re: how to program a lib A that depends on another lib B that depends on lib A
One other point; deliberately creating 2 libraries that are mutually dependent upon one another is a bad idea.
See also: https://en.wikipedia.org/wiki/Circular_dependency
See also: https://en.wikipedia.org/wiki/Circular_dependency