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
According to the Xtend forum (because the SARL OOP is strongly inspired by Xtend), static initializers should be written with block expressions as initializers.
It example above becomes in SARL:
final class Messages extends NLS {
private static val BUNDLE_NAME = {
val name = "io.sarl.eventdispatching.messages"
// initialize resource bundle
NLS.initializeMessages(name, typeof(Messages))
name
}
public static var BehaviorGuardEvaluator_0 : String
public static var BehaviorGuardEvaluator_1 : String
public static var BehaviorGuardEvaluatorRegistry_0 : String
private new {
}
}
Static initializer syntax is not allowed. For example, it is not possible to write the SARL equivalent to:
The text was updated successfully, but these errors were encountered: