- error 140: Invalid result type for this operator
Boolean Data Type in freebasic
Re: Boolean Data Type in freebasic
Presently, only "Integer" is allowed as return type when declaring the operator "Next" for overloading, otherwise:
-
- Posts: 2958
- Joined: Jun 02, 2015 16:24
Re: Boolean Data Type in freebasic
That's a question I wanted to ask, since I wanted to take profit on some possible cycling out like with normal numeric types. I mean maxvalue+1 = minvalue. Of course with booleans just doing value = not value is sufficent. But your issue with Next recalls me of that.fxm wrote:Presently, only "Integer" is allowed as return type when declaring the operator "Next" for overloading, otherwise:
- error 140: Invalid result type for this operator