Thorium wrote:You dont need runtime compiling for that. Just store a dll in the database download it and load it. It's the same you just skip the runtime compile.
In my previous development environment that was not possible but in PB that makes good sense. I will keep this idea in mind for the future.
cybergeek wrote:what about other kind of code like any code to be executed dyncamially?
I dont know what you mean. What kind of code? And what do you mean by dynamicaly executed?
PB is a compiler language and does not execute PB code on runtime. You can generate and execute machine code on runtime which is very rarely needed. Or you can write a scripting engine. Actualy there are some projects that implement the PB syntax as script language.
I guess I was not thinking of making a simple wrapper but I see your point. I was thinking more along the lines of what you can do in dynamic languages. I often store code in a database or create scripts on the fly using Visual FoxPro which then compiles and executes the code at runtime. In fact there is a specific command called "ExecScript" which compiles and runs the program code you pass to it. This allows a high degree of customization in your application that the user can control. So I was thinking it would be nice to have some kind of compiling ability from within an application. You could even put code in web-pages and execute it on the server at runtime this way.
If you want a dynamic language, use a dynamic language.
I do not particularly want a dynamic language
I was thinking more along the lines of what you can do in dynamic languages.
It seems like you want a dynamic language.
By the way, every result that can be gotten with a dynamic programming language can also be achieved in a compiled language, only by using different implementation techniques.