it is not possible to access the fault name and data in an install set on default
ex:
install( default => ... )
This is more about a feature request? But I guess that it cannot be moved there...
@Claudio: Did we not do something about this at some point? Is it documented?
Now you can access the fault name by simply get the content of the default field inside the scope. Ex:
scope( a ) { install( default => println@Console( a.default )() }
You can access fault data in the following way:
a.( a.default )
Very very very very very useful!
I think there is not related documentation
Great! Can you please add some documentation to docs.jolie-lang.org ?
Log in to post a comment.
This is more about a feature request? But I guess that it cannot be moved there...
@Claudio: Did we not do something about this at some point? Is it documented?
Now you can access the fault name by simply get the content of the default field inside the scope. Ex:
scope( a ) {
install( default => println@Console( a.default )()
}
You can access fault data in the following way:
a.( a.default )
Very very very very very useful!
I think there is not related documentation
Great! Can you please add some documentation to docs.jolie-lang.org ?