Re: [fpc-pascal] Looking for JavaScript component on FPC

2015-04-02 Thread Andrew Brunner
On 4/2/2015 11:46 AM, Michael Van Canneyt wrote: Namespaces are available as dotted units ? Namespace as dotted units? I use 3.1.1 compiled here so there is no problem. FPC since as far as I recall (svn) has had support for naming units with multiple dots. I've had tons of units with includ

Re: [fpc-pascal] Looking for JavaScript component on FPC

2015-04-02 Thread Sven Barth
Am 02.04.2015 18:46 schrieb "Michael Van Canneyt" : > > > > On Thu, 2 Apr 2015, Andrew Brunner wrote: > >> On 4/2/2015 2:24 AM, Michael Van Canneyt wrote: >>> >>> And already utterly unreadable for me... >>> IMHO goes to show that this is a very personal matter :-) >> >> >> Units that include hiera

Re: [fpc-pascal] Looking for JavaScript component on FPC

2015-04-02 Thread Michael Van Canneyt
On Thu, 2 Apr 2015, Andrew Brunner wrote: On 4/2/2015 2:24 AM, Michael Van Canneyt wrote: And already utterly unreadable for me... IMHO goes to show that this is a very personal matter :-) Units that include hierarchy via class types are a supplement for namespaces in languages such as c#

Re: [fpc-pascal] load a library twice

2015-04-02 Thread Anthony Walter
Both the Windows LoadLibrary/FreeLibrary and Unix style dlopen/dlclose function internally use a reference counting system to load and unload dll/shared object (dynamic library) files. This means that it is safe to call LoadLibrary twice, and FreeLibrary once whilst keeping the a library loading.

[fpc-pascal] load a library twice

2015-04-02 Thread Xiangrong Fang
Hi All, Is the following correct: var h1, h2: TLibHandle; lib1, lib2: string; begin lib1 := 'library.so'; lib2 := 'library.so'; h1 := LoadLibrary(lib1); h2 := LoadLibrary(lib2); end. The reason I need this is that I would like to keep the possibility to provide different group of fun

Re: [fpc-pascal] Looking for JavaScript component on FPC

2015-04-02 Thread Andrew Brunner
On 4/2/2015 2:24 AM, Michael Van Canneyt wrote: And already utterly unreadable for me... IMHO goes to show that this is a very personal matter :-) Units that include hierarchy via class types are a supplement for namespaces in languages such as c#. Since Namespaces are not *yet* available i

Re: [fpc-pascal] Looking for JavaScript component on FPC

2015-04-02 Thread Michael Van Canneyt
On Thu, 2 Apr 2015, Carlo Kok wrote: I see PascalScript is part of the Lazarus project now. I have not been able to get nested classes to work there either. If I am to get my code accessible, I will need someone with knowledge in extending BESEN or PascalScript or both. I would be idea

Re: [fpc-pascal] Looking for JavaScript component on FPC

2015-04-02 Thread Carlo Kok
I see PascalScript is part of the Lazarus project now. I have not been able to get nested classes to work there either. If I am to get my code accessible, I will need someone with knowledge in extending BESEN or PascalScript or both. I would be ideal to offer developers a choice of which s

Re: [fpc-pascal] Looking for JavaScript component on FPC

2015-04-02 Thread Michael Van Canneyt
On Wed, 1 Apr 2015, Andrew Brunner wrote: I have Besen installed and I am in the process of evaluating it. It does not handle nested classes. I need a JIT compiler that provide access to heavily nested class information. This PostInfo is a simple database module that I would want Script to