TypeOf() with lists, arrays and maps
Posted: Wed Jun 22, 2022 4:08 pm
According to the documentation of TypeOf(), its return value can be #PB_List, among others.
However, the last line of the following code raises a syntax error (tested with PB 6.00 beta 9 (x64) on Windows):
How can the return value of TypeOf() ever be #PB_List, if it is not possible to pass a list as parameter to TypeOf()?
The same problem exists with arrays and maps.
However, the last line of the following code raises a syntax error (tested with PB 6.00 beta 9 (x64) on Windows):
Code: Select all
NewList a.i()
AddElement(a()) : a() = 3
Debug a()
Debug TypeOf(a())The same problem exists with arrays and maps.