On Mon, Nov 18, 2013 at 6:31 PM, Sieghard <[email protected]> wrote:
> Hallo Marcos,
> ...
>
>> > [units]
>> > unit1=${projectdir}/level1/file1.pp
>> > unit2=${projectdir}/level1/file2.pp
> ...
>> You're correct and that is exactly what I'm trying to explain! :-)
>> So, the new ALIAS compiler parameter can be persisted in a config file
>
> There's no "new ALIAS compiler parameter" neccessary.
I know there is no new ALIAS parameter... So I'm proposing one.
>> unit group, package, lib or framework -- is used with other name.
>
> I don't think that the _UNIT_ should be "used with [an] other name", the
> _UNIT_ should be named the same, just the file path can be specified
> arbitrarily, and - maybe - the file name can be different from the unit
> name (as was originally planned even by Borland already, but never
> implemented - I don't know even whether FPC allows that).
Ok.
So, please, explain how we can use __TWO__ units which have the
__same name__ in the same project using their approach.
>> example I prefer to use:
>> @Level1=${projectdir}/level1/* // the "@" is the sintaxe for an ALIAS
>>
>> Now I can use all units in ${projectdir}/level1/ like this:
>> uses
>> Level1.file1, Level1.file2;
>>
>> More productive, don't you think?
>
> No. You'll have to write more, have to keep the files together, have to
> keep the naming consistent...
Write more? Ok, how about this resume:
a) One project
b) Two units which have the same name, eg: /src/dir_1/UnicodeUtils.pp
and /src/dir_2/UnicodeUtils.pp
c) I need to use both units in a third unit, eg: /src/Core.pp
So, how can I implement Core.pp to use both units above?
"
unit Core;
interface
uses UnicodeUtils... // WHERE????
"
Using my approach...
[project file]
@lib1=/src/dir_1/*
@lib2=/src/dir_2/*
"
unit Core;
interface
uses lib1.UnicodeUtils, lib2.UnicodeUtils;
"
Did you understand now?
>
> Anyway, we'll have to wait what will be implemented.
I think so. Perhaps you understand the benefits.
--
Marcos Douglas
------------------------------------------------------------------------------
Shape the Mobile Experience: Free Subscription
Software experts and developers: Be at the forefront of tech innovation.
Intel(R) Software Adrenaline delivers strategic insight and game-changing
conversations that shape the rapidly evolving mobile landscape. Sign up now.
http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk
_______________________________________________
mseide-msegui-talk mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk