On 25 November 2015 at 06:04, Peter Crosthwaite <crosthwaitepe...@gmail.com> wrote: > On Tue, Nov 24, 2015 at 4:00 PM, Andrew Baumann > <andrew.baum...@microsoft.com> wrote: >>In general, what's the guidance on what belongs in object init vs. the >>realize method? > > If it doesn't depend on property values, it goes in init. If it does > realize. Top level connectivity (e.g. connecting to UARTs are initing > drives) generally are realize.
Also, realize has a mechanism for reporting errors (the Error** argument) and instance init does not, so anything that might fail must go in realize. thanks -- PMM