I think that adapting the macro at the end of this thread: https://groups.google.com/forum/#!searchin/julia-users/unpack/julia-users/IQS2mT1ITwU/gEyj6JNJsuAJ and getting the fields of your type by using names(CircuitModel) it should work. I'll give it a try tomorrow if I have the time.
- [julia-users] Re: Help with writing a macro to for... Andrew Simper
- [julia-users] Re: Help with writing a macro to... Nathaniel Nicandro
- Re: [julia-users] Re: Help with writing a ... Stefan Karpinski
- Re: [julia-users] Help with writing a ... Jameson Nash
- Re: [julia-users] Help with writi... Nathaniel Nicandro
- Re: [julia-users] Re: Help with writin... Andrew Simper
- Re: [julia-users] Re: Help with w... Andrew Simper
- Re: [julia-users] Re: Help wi... Yuuki Soho
- Re: [julia-users] Re: Help wi... Nathaniel Nicandro
- Re: [julia-users] Re: Help wi... Andrew Simper
- [julia-users] Re: Help with writing a macro to for fetc... yuuki
