foam-framework / foam

Feature-Oriented Active Modeller
Apache License 2.0
787 stars 55 forks source link

Should clone() run initializers? ... probably by issuing a create()? #425

Open mdittmer opened 8 years ago

mdittmer commented 8 years ago

@jacksonic, @adamvy, and I were discussing this today. We've noted that dynamicValue() breaks init() doesn't run on objects that come out of a DAO that produces clones. We are pretty confident that this is because clone() doesn't actually create() a new object, and that it probably should.

@kgrgreer, can you offer your thoughts on this?

jacksonic commented 8 years ago

Related to ContextualizingDAO rebuilding .Y on objects #386 #392