You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I know that the constants are just a text file that can be placed in imports folder but Wurst does not allow us to read data from external files, does it? So we have to copy-paste the data in a wurst package to use it in runtime.
So may be we can have a proper compiletime function? Something like
In some form I should probably be added, but I'm unsure about the method. I think the setter will cause some confusion with execution order, overriding, default values and such.
I think there are 2 main ideas:
Offer some sandboxed compiletime FileIO which allows u to read files inside the project dir. This would keep the current file in imports.
Add some package to stdlib which contains all values with defaults as configurable constants. Now we would prolly have to ignore/forbid the file in imports, since it will be overriden by wurst.
I know that the constants are just a text file that can be placed in
imports
folder but Wurst does not allow us to read data from external files, does it? So we have to copy-paste the data in a wurst package to use it in runtime.So may be we can have a proper compiletime function? Something like
Which returns the set value.
The text was updated successfully, but these errors were encountered: