ID:109617
 
Resolved
hascall() failed to look up procs where _ was included in the name, unless they were being looked up with all underscores replaced by spaces.
BYOND Version:479
Operating System:Linux
Web Browser:Chrome 10.0.648.45
Applies to:DM Language
Status: Resolved (480)

This issue has been resolved.
Descriptive Problem Summary:
In issue 1996 call() was fixed to properly search for a procedure without replacing _ with spaces. However, it seems like hascall() is still using the old behavior, which is obviously an issue in using the fixed call() :(

Numbered Steps to Reproduce Problem:

Code Snippet (if applicable) to Reproduce Problem:
client/proc/__test()
client/New()
src << "Does __test exist? [hascall(src,"__test")]"


Expected Results:
For hascall() to return 1

Actual Results:
hascall() returns 0

Does the problem occur:
Every time

When does the problem NOT occur?

Did the problem NOT occur in any earlier versions? If so, what was the last version that worked? (Visit http://www.byond.com/download/build to download old versions for testing.)

Workarounds:
Use set name in the procedure, or make sure that the call to hascall() has spaces instead of underscores.