Boolean Data Type in freebasic

For other topics related to the FreeBASIC project or its community.
fxm
Posts: 9082
Joined: Apr 22, 2009 12:46
Location: Paris suburbs, FRANCE

Re: Boolean Data Type in freebasic

Postby fxm » Oct 13, 2015 7:45

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: 2756
Joined: Jun 02, 2015 16:24

Re: Boolean Data Type in freebasic

Postby Tourist Trap » Oct 13, 2015 13:21

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.

Return to “Community Discussion”

Who is online

Users browsing this forum: No registered users and 2 guests