how to program a lib A that depends on another lib B that depends on lib A

Post

Posted
Rating:
#1 (In Topic #562)
Avatar
Enthusiast
PJBlack is in the usergroup ‘Enthusiast’
i know how to do this in c or cpp but with gambas ??? no idea  :(
Online now: No Back to the top

Post

Posted
Rating:
#2
Avatar
Regular
stevedee is in the usergroup ‘Regular’
I think you just reference each library in the other library's list.

See my post: Captain Bodgit: Gambas: using external Gambas libraries
Online now: No Back to the top

Post

Posted
Rating:
#3
Avatar
Enthusiast
PJBlack is in the usergroup ‘Enthusiast’
 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
Online now: No Back to the top

Post

Posted
Rating:
#4
Avatar
Regular
stevedee is in the usergroup ‘Regular’

PJBlack said

no because they can't compile …

Can you give me a code example, so I don't have to write my own.
Online now: No Back to the top

Post

Posted
Rating:
#5
Avatar
Regular
stevedee is in the usergroup ‘Regular’
One other point; deliberately creating 2 libraries that are mutually dependent upon one another is a bad idea.

See also: Circular dependency - Wikipedia
Online now: No Back to the top

Post

Posted
Rating:
#6
Avatar
Enthusiast
PJBlack is in the usergroup ‘Enthusiast’

stevedee said

bad idea

my build in mr monk says it's a brilliant idea … but yes i think you're right and i will thinking about redesigning that stuff.

thanks for your help so far!
Online now: No Back to the top
1 guest and 0 members have just viewed this.