Re: [julia-users] Composite Types With Initialized Fields

2013-12-22 Thread James Porter
If you want a constant field its probable that you would be better served by type parameter. On Sunday, December 22, 2013 3:14:15 PM UTC-6, Marcus Urban wrote: So, does this also mean that it is not possible to have constant fields inside a composite type? On Sun, Dec 22, 2013 at 5:26

Re: [julia-users] Composite Types With Initialized Fields

2013-12-21 Thread John Myles White
Assigning default values to fields of a composite type is not yet supported. Your inner constructor is also a little un-Julian, since `MyType() = new()` doesn’t assign any values to those fields. — John On Dec 21, 2013, at 4:37 AM, Marcus Urban math...@gmail.com wrote: I am a little