Re: [swift-dev] Initializing constant object graph with cycles

2016-11-08 Thread Anton Mironov via swift-dev
> On Nov 8, 2016, at 4:17 AM, Greg Parker wrote: > >> >> On Nov 4, 2016, at 2:57 AM, Anton Mironov via swift-dev > > wrote: >> >> Hi all, >> >> I want to initialize constant object graph with cycles. I've considered two >> workarounds, but this is not a way I want

Re: [swift-dev] Initializing constant object graph with cycles

2016-11-07 Thread Greg Parker via swift-dev
> On Nov 4, 2016, at 2:57 AM, Anton Mironov via swift-dev > wrote: > > Hi all, > > I want to initialize constant object graph with cycles. I've considered two > workarounds, but this is not a way I want it to be. > > Here is an example: > ``` > // I have a context > protocol Context : class

[swift-dev] Initializing constant object graph with cycles

2016-11-04 Thread Anton Mironov via swift-dev
Hi all, I want to initialize constant object graph with cycles. I've considered two workarounds, but this is not a way I want it to be. Here is an example: ``` // I have a context protocol Context : class { /* some */ } // I have an object that has sense only in context class ObjectInContext