Merge: Calculator: add scientific features and nicer adaptations for Android and iOS
authorJean Privat <jean@pryen.org>
Wed, 11 May 2016 23:11:47 +0000 (19:11 -0400)
committerJean Privat <jean@pryen.org>
Wed, 11 May 2016 23:11:47 +0000 (19:11 -0400)
commit51496bd12df2fcb90fd095cccd09e4e055b360a1
treed97bd854fb3b18b3956d1f55d2847aa5429a7654
parent975264ed32caccd57cd358cabcb56933dc6b5fd2
parentb3225013e2d07ab1ce8e4b3c8041be4cafedf2fb
Merge: Calculator: add scientific features and nicer adaptations for Android and iOS

This is a long overdue update to the calculator which is the reference example for the _app.nit_ framework.

This PR adds scientific operations and constants to the calculator, directly in the logic, and only as a refinement of the UI. There is also new aesthetic adaptations for Android and iOS.

The calculator now uses Unicode operators like ÷ and ×, and internally a string instead of a `FlatBuffer` for simplicity. This change revealed errors in FFI wrappers where `to_s_with_copy` should have been used.

Pull-Request: #2066
Reviewed-by: Jean Privat <jean@pryen.org>