What are the pros and cons of RemObjects PascalScript versus the DWS script?

前端 未结 7 1514
没有蜡笔的小新
没有蜡笔的小新 2020-12-15 20:05

I\'m planning to include a pascal script in my application. It does not require any web access, simply access to classes in my Application. It should be fast (compiled). I s

7条回答
  •  猫巷女王i
    2020-12-15 20:37

    The three top reasons I originally went for DWS were that:

    1. in DWS you can/could declare whole new classes in the script, with inheritance, meta-classes, etc. and weren't restricted to those classes you exposed/imported.
    2. more restrictive exposure model (scripts can only access what you expose), this allows sand-boxing and safe termination of scripts at any time.
    3. simpler, more readable source code structure, with a straightforward, bytecode-less execution model that is comparatively easier to extend, debug & maintain.

    Note that I practically didn't use the "Web" side of DWS at all.

提交回复
热议问题