[chuck-users] Two classes referencing each other

Michael Heuer heuermh at gmail.com
Sat Oct 18 12:45:31 EDT 2014


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 <gonzalo at dense13.com> wrote:
> 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 at lists.cs.princeton.edu
>>> https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
>>
>>
>> _______________________________________________ chuck-users mailing
>> list chuck-users at lists.cs.princeton.edu
>> https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
>>
> _______________________________________________
> chuck-users mailing list
> chuck-users at lists.cs.princeton.edu
> https://lists.cs.princeton.edu/mailman/listinfo/chuck-users


More information about the chuck-users mailing list