HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Jass Helper Synthax checker

09-27-2007, 09:50 AM#1
Themerion
How to generate a crash:

Collapse JASS:
//The for function TAKES HANDLE
function ForForceLoop takes handle h returns nothing
endfunction

function StartHere takes nothing returns nothing
    call ForForce(udg_myForce,function ForForceLoop)
endfunction

This crashes under jassnewgenpack3e. I just thought that it would be nice if the synthax checker would generate an error for this kind of coding; instead of saving+compiling, then letting the game crash.

Or are there secret usages with letting ForForce functions take things?
09-27-2007, 01:53 PM#2
Vexorian
you mean it crashes the game? You should ask pitzermike about this so he adds it to PJass, although I think I am able to do it as well.
09-27-2007, 06:08 PM#3
Themerion
Aight, I'll PM mike.

UPDATE
Mike said that this issue is already fixed in PJASS 1.0h. Suppose I'll see it in jassnewgenpack3f.