How do I get at this nargs field? On julia 0.5 Method doesn't seem to have a field with that name?
> -----Original Message----- > From: julia-users@googlegroups.com [mailto:julia- > us...@googlegroups.com] On Behalf Of Yichao Yu > Sent: Friday, November 4, 2016 3:54 PM > To: Julia Users <julia-users@googlegroups.com> > Subject: Re: [julia-users] Getting parameter names from Method > > On Fri, Nov 4, 2016 at 6:31 PM, David Anthoff <anth...@berkeley.edu> > wrote: > > Is there a way to get the names of the parameters of a method from a > > Method type instance on julia 0.5? > > Roughly: > > nargs tell you how many arguments the method accepts, the first one being > the object (function) being called. > The local variables names are available in the CodeInfo.slotnames and the > first nargs ones are the parameter names. > The CodeInfo can be found in the source field of the method for non- > generated functions and unspecialized.inferred for generated function. > > > > > > > > > Thanks, > > > > David