You can make the suggestion, but there's zero chance of it happening. You're talking about a major rewrite of the library system.
> On Sep 25, 2017, at 2:53 PM, Doug Hall <[email protected]> wrote: > > May I make a suggestion? Take a page from some other languages (okay, > Elixir) and allow the libraries to be nested. Have one "lib" folder, and > put your Active4D folder here. This lib folder is also where the developer > could put their own libraries or library folders. > > Inside the Active4D folder, you have the standard console, debug, json, > lists, etc. libraries, but those filenames would actually be: console.a4l, > debug.a4l, json.a4l, etc. instead of all being prefixed by "a4d." The > library definition inside these files would actually read: library > "active4D.console". Each dot in the library name would represent a folder > within the lib folder, so the active4D part refers to the containing folder. > > In your plugin code, you could implement an alias command, to help > developers shorten the access to these libraries, like this: > > alias "Active4D.util" as "util" (or just: alias "Active4D.util" to > default to the last portion as the alias name.) > > So, the developer could use: util.unlockAndLoad([TableName]) instead of > Active4D.util.unlockAndLoad([TableName]). > > It would probably be better to require either the full Library prefix or an > alias, than for you to try and figure out which library's method is being > called. This may not be backward compatible, but it could at least help fix > some namespace issues. > > I'm sure this is easier said than done, but it would help to better > namespace libraries, and also keep separate concerns better organized > within the project code. I have SEVERAL really long libraries that I could > break into smaller libraries if I could simply namespace their containing > folder(s). > > Thanks for the progress! > Doug > > On Mon, Sep 25, 2017 at 12:41 PM, Aparajita Fishman <[email protected] >> wrote: > >> Yeah, I should have done this a long time ago, sorry I put you all through >> so much hassle. 😊 >> >>> On Sep 25, 2017, at 10:31 AM, Michael Larue <[email protected]> wrote: >>> >>> Monday, September 25, 2017 at 7:24:41 PM >>> >>> Hi Aparajita, >>> >>> Woo hoo! Great news! That will be very helpful, as all my systems are >> deployed on 4D Client, yet I develop in 4D standalone. One less thing to >> trip up on when getting these set up and maintaining them. >>> >>> Thanks again for your continued support for Active4D--very much >> appreciated! >>> >>> Cheers! >>> >>> Michael Larue >>> Dimension IV Consulting, LLC >>> >>> ------------------- >>> >>> On Sep 25, 2017, at 7:18 PM, Aparajita Fishman <[email protected]> >> wrote: >>> >>>> In the forthcoming v7, the separate "conf" and "lib" directories have >> been abandoned altogether for a single "Active4D" directory, so you can >> keep the exact same directory structure in all environments. >>> >>> _______________________________________________ >>> Active4D-dev mailing list >>> [email protected] >>> http://list.aparajitaworld.com/listinfo/active4d-dev >>> Archives: http://active4d-nabble.aparajitaworld.com/ >> >> _______________________________________________ >> Active4D-dev mailing list >> [email protected] >> http://list.aparajitaworld.com/listinfo/active4d-dev >> Archives: http://active4d-nabble.aparajitaworld.com/ >> > _______________________________________________ > Active4D-dev mailing list > [email protected] > http://list.aparajitaworld.com/listinfo/active4d-dev > Archives: http://active4d-nabble.aparajitaworld.com/ _______________________________________________ Active4D-dev mailing list [email protected] http://list.aparajitaworld.com/listinfo/active4d-dev Archives: http://active4d-nabble.aparajitaworld.com/
