Got it. Thanks Alex! Regards, Kashyap On Sat, Nov 2, 2019 at 10:19 AM Alexander Burger <a...@software-lab.de> wrote:
> On Sat, Nov 02, 2019 at 09:34:08AM -0700, C K Kashyap wrote: > > I have to admit that I have not read the code in detail but is there a > > "logical circular reference" happening when app/gui.l refers to > app/item.l > > and then app/item.l refers to choItem which is app/gui.l? Couldn't all > > "item" related code be in app/item.l? > > For simple cases: Yes. I do that sometimes (i.e. (de choXXX ...) in "xxx.l" > followed by the actual form (menu ... (idForm ...))). Thus, when the menu > calls > "xxx.l", 'choXXX' gets defined and used immediately. > > But: In reality this is seldom enough. 'choXXX' will normally be needed in > many > other places too, to access XXX objects. So it is better loaded in a > library at > startup time. > > 'choItem' is in fact such a case. "app/ord.l" needs it to select items in > the > order. > > 'choCuSu' is used in "cusu.l", but is also needed in "ord.l", "item.l", > "inventory.l" and "sales.l". > > ☺/ A!ex > > -- > UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe >