rnett
10/15/2022, 3:01 AMilya.chernikov
10/18/2022, 9:17 AMinit
blocks, variables become properties of this class and functions - methods of this class. The evaluation of the script is in fact an instantiation of the script class, and the scripting API allows you to get an instance of this class after eval.
There is no way currently to "compile script into method body" and there is an issue about it.
But there is no guarantee that we will ever provide such an option per se.
In general we would like to treat script as something special with it's own properties and guaranties, without exposing implementation details.
So, if you have some particular reasons why you want certain representation of the script to be accessible, please tell us. We will try to consider them while designing scripting support in K2. But we most likely will try to hide the actual implementation details.rnett
10/18/2022, 2:54 PMrnett
11/07/2022, 8:17 PMilya.chernikov
11/08/2022, 3:26 PMrnett
11/08/2022, 6:33 PM