bitloops-language icon indicating copy to clipboard operation
bitloops-language copied to clipboard

No casting available

Open giorgosnty opened this issue 2 years ago • 0 comments

Describe the bug Casting is not available in BL.

Example: const startingYear: int32 = startingDateString.split('/').pop(); This one gives error

Solution We should have something like const startingYear: int32 = startingDateString.split('/').pop().toInt(); or const startingYear: int32 = (int32) startingDateString.split('/').pop();

Expected behavior A clear and concise description of what you expected to happen.

giorgosnty avatar Jul 06 '23 13:07 giorgosnty