This doesn't even make sense.. as a string in PureBasic is considered to be a fully qualified type then the syntax should be the same as every other type; it still works for all of the others!
I can no longer do this:
Code: Select all
If Not Empty.s
Debug 1
EndIf
Code: Select all
If Not Bool(Empty.s)
Debug 1
EndIf
or
If Empty.s=""
Debug 1
EndIf
or
If Len(Empty.s)
Debug 1
EndIf
Which suggests that it probably has all of the information needed already to make the evaluation.. but a design choice was made such that it no longer does.Line 1: 'Not' operand can not be used with strings.
This makes me very sad and is an unwelcome change. I am so used to simply using "Not" when referring to an empty string that adjusting to this has been more than a little mind-numbing.
I accept that Bool() can be useful for removing ambiguity but this change is a significant step backwards in terms of ease of use. Please PLEASE consider changing this back.
