Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Bug Reports / can't use a subroutine inside a function with version 7.4

Author
Message
thedubdude
20
Years of Service
User Offline
Joined: 24th May 2003
Location: San Jose, Ca.
Posted: 22nd Apr 2010 08:13
The following worked fine in versions prior to DBPro 7.4 but now it generates a compiler error:

rem ******************************

test()

end


function test()

gosub _A

exitfunction

_A:
print "hello"
return

endfunction
Green Gandalf
VIP Member
19
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 25th Apr 2010 20:29 Edited at: 25th Apr 2010 20:31
Look at this thread:

http://forum.thegamecreators.com/?m=forum_view&t=163004&b=15

You'll see it's an intentional feature not a bug.

And it's even mentioned in your upgrade7_4.txt file.
IanM
Retired Moderator
21
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 3rd May 2010 16:17
The weird thing is that Lee used this feature in FPSC (as I found out lately) and safety code has to be disabled to compile that source.

Login to post a reply

Server time is: 2024-04-19 06:59:13
Your offset time is: 2024-04-19 06:59:13