Re: [Arsperl-devel] ARSperl package structure changes
Brought to you by:
jeffmurphy
From: jeff m. <jcm...@je...> - 2009-03-31 20:04:51
|
On Mar 31, 2009, at 3:52 PM, Thilo Stapff wrote: > Hi all, > > I'd like to make a reorganization to the directory structure of the > ARSperl package which might not be entirely backwards compatible, > especially concerning the OO-Modules, so I want to discuss it here > first. > > I've always regarded it as rather bad practice that ARSperl installs > sol > many files directly into the "site/lib" directory. In my opinion there > should only be ARS.pm and an "ARS/" subdirectory containing everything > else. So what I'd like to do is moving the following files to the > "ARS/" > subdirectory: > > ARSar-h.pm > ARSarerrno-h.pm > ARSnparm.pm > ARSnt-h.pm > ARSnterrno-h.pm > ARSOOform.pm > ARSOOmsgs.pm > ARSOOsup.pm > artypes.ph > _h2ph_pre.ph > > thereby changing the filenames to "ARS/ar-h.pm", "ARS/arerrno.pm" etc. > > I'll try to make this as backwards compatible as possible, which might > not be entirely feasible for the OO-Modules, so users might have to > change their code from "new ARS(...)" to something like "new > ARS::OO(...)". sounds OK to me, if the change is minimal to user code. > > Does anyone know what "_h2ph_pre.ph" and "artypes.ph" are about? They > are "require"d by most of the .pm modules, but only contain the code > "1;", which doesn't seem to make sense. I'd like to get rid of them > altogether unless there is a reason for their existence. > http://www.arsperl.org/manual/OO/form.html#setSort The "ARS::AR_SORT_ASCENDING" business comes from those files. Those files are supposedly to be generated by Makefile.PL during the build process. The intention is to give people mnemonic access to header constants without having them rely on "ars_export(..., 1 | 2 | 8 | 4096)" messiness. > > Regards, > Thilo > > > > > > > > > > ------------------------------------------------------------------------------ > _______________________________________________ > Arsperl-devel mailing list > Ars...@ar... > https://lists.sourceforge.net/lists/listinfo/arsperl-devel |