Hallo Marcos,

Du schriebst am Sat, 16 Nov 2013 21:20:28 -0200:

> > Java? I don't know of either an operating system named "Java" or a file
> > system of that name, only a programming language called so. Programming
...
> I was talking about Java language, of course.
> Pascal uses units. Java uses packages. Packages are referenced by your
> paths but you do not uses "\" or "/" but uses "."

Ok, then either I didn't understand what you were out for or your point
wasn't stated clearly. You wrote
"The compiler should provide a way to assign a directory to a
 'Namespace' named by programmer, eg: Synapse.
"
and that one should be able to assign a
"Namespace for Synapse like this:
 fpc /src/synapse/* -alias synapse
"
which requires the use of a file system path specification.
That's what I referred to, but perhaps that wasn't what you intended.

> > somehow specify where to find the source files a project uses. Usually,
...
> MSE has .prj file; Lazarus has .lpi file; you can use your own script too.
> The language should not care about paths... only the compiler. I mean
> the concept "where are the files" is not a language concern.

That's right, and thus, there's no place to use anything to that end within
a source file, not even an "alias", as you called it, referring to a
specific place in the host system. If something to that end is to be used,
path resolution should be done at a level "above" the source level, e.g. it
might be done by specifying an exact path for each unit in the project file
as mentioned above. Neitzher Lazarus nor MSEIDE do it this way now, but it
could be added, e.g. similar to this:

[units]
 unit1=${projectdir}/level1/file1.pp
 unit2=${projectdir}/level1/file2.pp
 unit3=${projectdir}/level2/file3.pp
 unit4=${projectdir}/level2/level3/file4.pp
 unitx=/somewhere/else/in_the/filesystem/external.pas
 main=${projectdir}/file0.pas

You certainly can guess how this would be used in the project source.

-- 
-- 
(Weitergabe von Adressdaten, Telefonnummern u.ä. ohne Zustimmung
nicht gestattet, ebenso Zusendung von Werbung oder ähnlichem)
-----------------------------------------------------------
Mit freundlichen Grüßen, S. Schicktanz
-----------------------------------------------------------



------------------------------------------------------------------------------
DreamFactory - Open Source REST & JSON Services for HTML5 & Native Apps
OAuth, Users, Roles, SQL, NoSQL, BLOB Storage and External API Access
Free app hosting. Or install the open source package on any LAMP server.
Sign up and see examples for AngularJS, jQuery, Sencha Touch and Native!
http://pubads.g.doubleclick.net/gampad/clk?id=63469471&iu=/4140/ostg.clktrk
_______________________________________________
mseide-msegui-talk mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk

Reply via email to