Alessandro71 Well-Known Member Licensed User Longtime User Dec 4, 2022 #1 this simple (sample) sub causes an error only in B4i all is fine in B4A and B4J B4X: Private Sub test(block As Int) As Int Return block + 1 End Sub renaming "block" to "bblock" removes the message sample project attached Attachments block.zip 18.3 KB · Views: 103
this simple (sample) sub causes an error only in B4i all is fine in B4A and B4J B4X: Private Sub test(block As Int) As Int Return block + 1 End Sub renaming "block" to "bblock" removes the message sample project attached
Erel B4X founder Staff member Licensed User Longtime User Dec 5, 2022 #2 This is not a bug. The compiler looks for this and throws an error as this is a reserved keyword in OBJC and it will break the OBJC compiler.
This is not a bug. The compiler looks for this and throws an error as this is a reserved keyword in OBJC and it will break the OBJC compiler.
Alessandro71 Well-Known Member Licensed User Longtime User Dec 5, 2022 #3 Erel said: This is not a bug. The compiler looks for this and throws an error as this is a reserved keyword in OBJC and it will break the OBJC compiler. Click to expand... shouldn't this type of keyword check be the same across all B4X products, so the resultant code will be portable? i discovered this while compiling a running B4A app on B4i
Erel said: This is not a bug. The compiler looks for this and throws an error as this is a reserved keyword in OBJC and it will break the OBJC compiler. Click to expand... shouldn't this type of keyword check be the same across all B4X products, so the resultant code will be portable? i discovered this while compiling a running B4A app on B4i
Erel B4X founder Staff member Licensed User Longtime User Dec 5, 2022 #4 Valid point but I won't break existing B4A / B4J code because it is problematic in B4i. I might add a warning for this at some point.
Valid point but I won't break existing B4A / B4J code because it is problematic in B4i. I might add a warning for this at some point.