[fpc-pascal] Free Pascal Directories

silvioprog silvioprog at gmail.com
Fri Oct 3 00:13:31 CEST 2014


On Thu, Oct 2, 2014 at 6:51 PM, Mattias Gaertner <nc-gaertnma at netcologne.de>
wrote:

> On Thu, 2 Oct 2014 18:40:01 -0300
> silvioprog <silvioprog at gmail.com> wrote:
>
> >[...]
> > But it would be an nice feature in Free Pascal, something like the
> "import"
> > of Python and Java. =)
>
> Java requires a CLASSPATH for the imports to work, does it not?
>
> Mattias


You can import one or more classes. E.g, you can use it:

import com.example.Foo;
import com.example.Bar;

or:

import com.example.*;

In first example, you import only Foo and Bar classes, in second you import
any classes in "example", Foo, Bar, Other.

-- 
Silvio Clécio
My public projects - github.com/silvioprog
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20141002/5230de07/attachment.html>


More information about the fpc-pascal mailing list