Boolean Data Type in freebasic

General discussion for topics related to the FreeBASIC project or its community.
Post Reply
fxm
Moderator
Posts: 12081
Joined: Apr 22, 2009 12:46
Location: Paris suburbs, FRANCE

Re: Boolean Data Type in freebasic

Post by fxm »

Presently, only "Integer" is allowed as return type when declaring the operator "Next" for overloading, otherwise:
  • error 140: Invalid result type for this operator
Tourist Trap
Posts: 2958
Joined: Jun 02, 2015 16:24

Re: Boolean Data Type in freebasic

Post by Tourist Trap »

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
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.
Post Reply