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

> On Thu, 2 Oct 2014 18:40:01 -0300
> silvioprog <silviop...@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
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to