Hi, The CompiledMethod already has a way to retrieve Pragma instances:
CompiledMethod>>pragmas. However, the Pragma instance does not have a meta-object associated with it. So, I would first start from adding that one and linking such a PragmaType to its instances. The important thing here would be that all Pragma instances with a certain selector should reference the same PragmaType. Cheers, Doru > On Jun 27, 2016, at 12:34 PM, Denis Kudriashov <[email protected]> wrote: > > > 2016-06-27 12:12 GMT+02:00 Tudor Girba <[email protected]>: > Hi, > > That is my proposal as well: introduce a first class entity that describes a > Pragma instance. Who would be interested to play with this? > > How it could be done? > Probably compiler could search preferred Pragma class for given selector. And > then we will have collection of real pragma instances inside CompiledMethod. > What do you think? -- www.tudorgirba.com www.feenk.com "Be rather willing to give than demanding to get."
