Is this possible? If class A uses class B somewhere, and viceversa, how can I load them both from a third file? Cheers, Gonzalo
You could break up those classes, reshuffling their members in some other way, so as not to have any mutual dependencies. (given that Chuck doesn't have some type of forward declaration or equivalent mechanism, for members of other classes, I don't see another way to do it). Hope this works for you. Daniel On Oct 17, 2014, at 8:57 PM, Gonzalo wrote:
Is this possible? If class A uses class B somewhere, and viceversa, how can I load them both from a third file?
Cheers, Gonzalo _______________________________________________ chuck-users mailing list chuck-users@lists.cs.princeton.edu https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
I guess that means no... :( It won't work in my scenario, I'll have to find another way to structure things. And I guess forward declaration is probably not in the plans for future versions. On 18/10/2014 3:31 pm, Daniel Chapiro wrote:
You could break up those classes, reshuffling their members in some other way, so as not to have any mutual dependencies.
(given that Chuck doesn't have some type of forward declaration or equivalent mechanism, for members of other classes, I don't see another way to do it).
Hope this works for you. Daniel
On Oct 17, 2014, at 8:57 PM, Gonzalo wrote:
Is this possible? If class A uses class B somewhere, and viceversa, how can I load them both from a third file?
Cheers, Gonzalo _______________________________________________ chuck-users mailing list chuck-users@lists.cs.princeton.edu https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
_______________________________________________ chuck-users mailing list chuck-users@lists.cs.princeton.edu https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
I've even run into this within the same file
https://github.com/spencersalazar/chuck/issues/31
michael
On Fri, Oct 17, 2014 at 11:52 PM, Gonzalo
I guess that means no... :( It won't work in my scenario, I'll have to find another way to structure things. And I guess forward declaration is probably not in the plans for future versions.
On 18/10/2014 3:31 pm, Daniel Chapiro wrote:
You could break up those classes, reshuffling their members in some other way, so as not to have any mutual dependencies.
(given that Chuck doesn't have some type of forward declaration or equivalent mechanism, for members of other classes, I don't see another way to do it).
Hope this works for you. Daniel
On Oct 17, 2014, at 8:57 PM, Gonzalo wrote:
Is this possible? If class A uses class B somewhere, and viceversa, how can I load them both from a third file?
Cheers, Gonzalo _______________________________________________ chuck-users mailing list chuck-users@lists.cs.princeton.edu https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
_______________________________________________ chuck-users mailing list chuck-users@lists.cs.princeton.edu https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
_______________________________________________ chuck-users mailing list chuck-users@lists.cs.princeton.edu https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
participants (3)
-
Daniel Chapiro
-
Gonzalo
-
Michael Heuer