From: Matthias D. W. <mwa...@ya...> - 2013-11-21 10:04:22
|
Hi developers, I got another question: in http://www.jolie-lang.org/?top_menu=documentation&sideMenuAction=getting_started/behavior_and_deployment we have a simple client-server example: > |main| > |{| > |||twice( number )( response ) {| > |||response = number * ||2| > |||}| > |}| But when I change it to be one-way I run into trouble: > interface TwiceInterface { > OneWay: twice( int ) > } and > main > { > twice( number ) { > result = number * 2; > println@Console( result )(); > } > } does not work. Why? Do I need something like this? > main > { > [ twice( number ) ] { > result = number * 2; > println@Console( result )(); > } > } Cheers, Matthias |