Domains across classes?
Posted: 1 Jun 2021 19:40
I've been doing most of my project so far within main and the gui packages but am now trying to split main into separate packages to be more OO. However I can't figure out how to get my domains to work outside of the main class. I've read the tutorial but haven't found anything specifically addressing this. I tried referencing the domain as "main::domainname" but that didn't work. I can Kludge it by converting to string and then back to a local domain, but there must be a better way. I still don't really understand interfaces, but my reading doesn't suggest that an interface would help anyway. Can domains be declared to be visible/usable across classes?