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

2015-04-03 Thread Marco van de Voort
In our previous episode, Graeme Geldenhuys said: > I understand that, but in the context of the example, the tiOPF project > has different implementations of the same functionality for different > GUI toolkits. So in that case the developer would use the partial > namespace unit name (tiMediator or

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

2015-04-03 Thread Graeme Geldenhuys
On 2015-04-03 12:35, Marco van de Voort wrote: >> > That way we don't need $IFDEFs or special Unit Search Paths, just >> > specify "FMX" or "VCL or "LCL" in the Project Unit Scope names list. >> > >> > You then simply refer to those units in your uses clause by using: > Not entirely, since you can

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

2015-04-03 Thread Marco van de Voort
In our previous episode, Graeme Geldenhuys said: > > But namespaces are functional in Delphi - not just cosmetic. So are you > saying that FPC doesn't have the same functional ability as Delphi when > it comes to namespaces? > > The following is how somebody explained Delphi namespaces to me: >

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

2015-04-03 Thread Michael Van Canneyt
On Fri, 3 Apr 2015, Graeme Geldenhuys wrote: On 2015-04-03 11:52, Michael Van Canneyt wrote: I don't think the command-line option already exists, but the dotted unit names are treated as namespaces. I remember some discussions about it with Paul Ishenin. So that answers my original quest

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

2015-04-03 Thread Graeme Geldenhuys
On 2015-04-03 10:39, Michael Van Canneyt wrote: > you just change one option -Fu/GUI/LCL to 2: -Fu/GUI -NLCL > I don't see much added value in that. Other possibly (more useful) usage would be reducing the generic unit name clashes. eg: How common is the unit name constants.pas? Very common. So wh

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

2015-04-03 Thread Graeme Geldenhuys
On 2015-04-03 11:52, Michael Van Canneyt wrote: > > I don't think the command-line option already exists, but the dotted unit > names are treated as namespaces. I remember some discussions about it with > Paul Ishenin. So that answers my original question, that FPC still doesn't support namespa

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

2015-04-03 Thread Michael Van Canneyt
On Fri, 3 Apr 2015, Graeme Geldenhuys wrote: On 2015-04-03 10:39, Michael Van Canneyt wrote: It's all a matter of preference. Fair enough. I take it FPC doesn't support this then? To my knowledge, it does ? So what compiler parameter option do you use to specify the namespace scope

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

2015-04-03 Thread Graeme Geldenhuys
On 2015-04-03 10:39, Michael Van Canneyt wrote: > > It's all a matter of preference. Fair enough. >> I take it FPC doesn't support this then? > > To my knowledge, it does ? So what compiler parameter option do you use to specify the namespace scope list for your project? As far as I can see

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

2015-04-03 Thread Michael Van Canneyt
On Fri, 3 Apr 2015, Graeme Geldenhuys wrote: On 2015-04-03 08:09, Michael Van Canneyt wrote: To be sure, it was introduced to be delphi compatible. Whether namespaces are 'modern','advanced' or not is a matter of debate. In the end (at the assembler level) it's all a flat namespace anyway.

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

2015-04-03 Thread Graeme Geldenhuys
On 2015-04-03 08:09, Michael Van Canneyt wrote: > To be sure, it was introduced to be delphi compatible. > Whether namespaces are 'modern','advanced' or not is a matter of debate. > In the end (at the assembler level) it's all a flat namespace anyway. But namespaces are functional in Delphi - not

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

2015-04-03 Thread Michael Van Canneyt
On Thu, 2 Apr 2015, Andrew Brunner wrote: 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 multip

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] 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

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

2015-04-01 Thread Andrew Brunner
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 have access to. ---

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

2015-04-01 Thread vfclists .
On 31 March 2015 at 22:06, Michael Van Canneyt wrote: > > > On Tue, 31 Mar 2015, Andrew Brunner wrote: > > I am trying to integrate javascript for back-end support of cloud apps. >> I noticed the fcl-js package. Does anyone have an idea when we can expect >> to have a component suite much like

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

2015-03-31 Thread Anthony Walter
If you're back end is on a windows machine this is probably the easiest solution: http://www.codebot.org/delphi/?doc=9573 Otherwise, you might want to consider chromium embeded framework and just reusing the exposed Javascript engine. here is a link for that: https://code.google.com/p/dcef3/ ___

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

2015-03-31 Thread Michael Van Canneyt
On Tue, 31 Mar 2015, Andrew Brunner wrote: I am trying to integrate javascript for back-end support of cloud apps. I noticed the fcl-js package. Does anyone have an idea when we can expect to have a component suite much like the PascalScript? If you want to integrate JS in a pascal app, y

[fpc-pascal] Looking for JavaScript component on FPC

2015-03-31 Thread Andrew Brunner
I am trying to integrate javascript for back-end support of cloud apps. I noticed the fcl-js package. Does anyone have an idea when we can expect to have a component suite much like the PascalScript? Thanks, -- Andrew Brunner Aurawin LLC 512.850.3117 https://aurawin.com/ Aurawin is a great