Re: [fpc-pascal] Merging units

2020-10-06 Thread Ryan Joseph via fpc-pascal
> On Oct 6, 2020, at 2:52 PM, Zamrony P. Juhara via fpc-pascal > wrote: > > I use a secondary unit as alias of all separate units as Marco suggests in > > https://github.com/fanoframework/fano/blob/master/src/fano.pas > > However I am curious if merging units like this has drawback. AFAIK sm

Re: [fpc-pascal] Merging units

2020-10-06 Thread Zamrony P. Juhara via fpc-pascal
I use a secondary unit as alias of all separate units as Marco suggests in https://github.com/fanoframework/fano/blob/master/src/fano.pas However I am curious if merging units like this has drawback. AFAIK smart linking works. Sent from Yahoo Mail on Android On Sat, Oct 3, 2020 at 3:31, Marc

Re: [fpc-pascal] Merging units

2020-10-02 Thread Marco van de Voort via fpc-pascal
Op 2020-10-02 om 19:55 schreef Ryan Joseph via fpc-pascal: Something that's bothered me for a while I wanted to ask about. I have a package I want to distribute which has 2 or more units, all of which are required to use the package. Technically all the code should be in one file but because

Re: [fpc-pascal] Merging units

2020-10-02 Thread Sven Barth via fpc-pascal
Am 02.10.2020 um 19:55 schrieb Ryan Joseph via fpc-pascal: Any ideas of solutions or preferred approaches? Is it feasible to add an "imports" clause to Pascal or are there other pitfalls? The preferred solutions are indeed either to put everything in one unit (includes or not) or to have the us

[fpc-pascal] Merging units

2020-10-02 Thread Ryan Joseph via fpc-pascal
Something that's bothered me for a while I wanted to ask about. I have a package I want to distribute which has 2 or more units, all of which are required to use the package. Technically all the code should be in one file but because units are a nice feature of Pascal we like to keep our code s