[fpc-pascal] Looking for JavaScript component on FPC

Michael Van Canneyt michael at freepascal.org
Thu Apr 2 09:24:19 CEST 2015


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 have access to.
[]

>  Log ('WooHoo');
> };
>
> Nested classes are a modern way to organize complex API and code into very 
> easy to read code.  Most of the modules I have are extremely nested, the one 
> I chose here is easy and strait forward.

And already utterly unreadable for me...
IMHO goes to show that this is a very personal matter :-)

>
> 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 
> scripting language they want to write back-end code.
>
> But if I am to provide developers with instant API to do complex code that is 
> relevant to computing needs of today, I will need access to nested objects in 
> either of these JITCs.
>
> Anyone familiar with BESEN or PascalScript that could shed some light?

Can you explain why nested classes cannot be handled in e.g. besen ? 
They are no different from normal classes except in their name, a fact that 
could probably be handled through some stringreplace('.','_') or so.

Michael.



More information about the fpc-pascal mailing list