rjhdby
08/07/2018, 2:43 PMerror: no spread elements allowed here
for this code?
immutableBinaryBlobOf(*(name.toCharArray() as ShortArray))
svyatoslav.scherbina
08/07/2018, 3:35 PM*
is not allowed in immutableBinaryBlobOf
. The latter must be evaluated in compile time, and having *
among arguments complicates this.Andrey Gromov
08/07/2018, 4:54 PMimmutableBinaryBlobOf
from compile time String constant?svyatoslav.scherbina
08/08/2018, 6:53 AMrjhdby
08/08/2018, 7:44 AMsvyatoslav.scherbina
08/08/2018, 8:28 AMsizeof(name)
would be incorrect there in any case, since name
expands to arg
which is parameter of type char*
.rjhdby
08/08/2018, 8:41 AM