David, Why don't you get the component to just create the method in the host before calling it? (Assuming it doesn't exist yet).
This only works interpreted but we do that all the time in the Foundation world. Regards, Wayne Sent from my iPhone > On 18 Apr 2017, at 21:56, David Adams via 4D_Tech <[email protected]> > wrote: > > On Tue, Apr 18, 2017 at 9:48 PM, Keisuke Miyako via 4D_Tech < > [email protected]> wrote: > >> to recap, >> >> why do you need to know from a compiled component if the host is >> interpreted? >> > > I'd like to validate that the host method name I'm being passed is valid in > two ways: > > 1) The name actually exists in the host. > 2) The name does not match a name in the component. > > If the host is compiled, I can grab all method names once and cache them in > the worker. (My component manages a worker.) Then I can search on that list > without reloading it. If the host is interpreted, I can't be sure that the > list of method names has not changed since I last checked on the name. > > I may be over-thinking this - my concern is that METHOD GET NAMES will be a > bit slow. I haven't retested this to confirm, I just remember using it in > V13 and finding it a bit slow on a structure with 4,000+ methods. > > Thanks. > ********************************************************************** > 4D Internet Users Group (4D iNUG) > FAQ: http://lists.4d.com/faqnug.html > Archive: http://lists.4d.com/archives.html > Options: http://lists.4d.com/mailman/options/4d_tech > Unsub: mailto:[email protected] > ********************************************************************** ********************************************************************** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4d.com/archives.html Options: http://lists.4d.com/mailman/options/4d_tech Unsub: mailto:[email protected] **********************************************************************

