View Single Post
popey456963
Member
Join Date: Mar 2016
Old 10-03-2017 , 18:08   Re: How to convert "const String:var[]" to new syntax
Reply With Quote #10

For reference, I had the following code:

Code:
#define that view_as<int>(this)
Since I somewhat dislike the `view_as<int>(this)` line and I'm used to using `that` a lot in JavaScript (at least, until arrow functions become more widespread). I imagine it is a bug with `smlib` where it doesn't include the return type `boolean`, but it does seem to return anyway.

Last edited by popey456963; 10-03-2017 at 18:09.
popey456963 is offline