Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BCC-NG uses function pointer as numeric when used ambiguously #240

Closed
GWRon opened this issue Jan 29, 2017 · 0 comments
Closed

BCC-NG uses function pointer as numeric when used ambiguously #240

GWRon opened this issue Jan 29, 2017 · 0 comments

Comments

@GWRon
Copy link
Contributor

GWRon commented Jan 29, 2017

SuperStrict

Function low:Int()
	Return 1
End Function

Function high:Int(l:Int=1)
	Return 10
End Function


Local lo:Int= low()
Local hi:Int= high()
Local numbins:Int = 2
'invalid way - vanilla stops here
Local binsize:Double = (hi-low)/numbins
'valid way to access
high low()

Vanilla does fail when using "low" without brackets in a code portion needing more information (function pointer or function result requested?)

More details / discussion thread:
http://www.blitzmax.com/Community/posts.php?topic=107658

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant