Project

General

Profile

Bug #164

Updated by Baptiste Pillot over 4 years ago

If i use this procedure below bottom it works fine as it should and prints name$,b,c. But if i then remove // for the locate command to work inside the procedure,it comes up with error very bottom below. 

 ```aoz 
 // functions 

 name$="hello there" 
 b=10 
 c=16 
 test[b,c,name$] 

 Procedure test[b,c,name$] 
 //locate b,c 
 print name$,b,c 
 End Proc 


 ................................... 
 ``` 

 ``` 
 Error 

 Compiling c:/Users/maleh/Documents/AOZ Studio Applications/applications/Test1, emulation: 1200, speed: fast. 
 First pass... 
 Second pass... 
 main.aoz:1:1: Compiler error: crash during compilation: pass: 2 
 cannot read property 'definition' of undefined 
 typeerror: cannot read property 'definition' of undefined 
     at secondpass (c:\snapshot\compiler\compiler.js:0:0) 
     at object.module.exports.compile (c:\snapshot\compiler\compiler.js:0:0) 
     at compile (c:\snapshot\compiler\aoz.js:0:0) 
     at aoz (c:\snapshot\compiler\aoz.js:0:0) 
     at object.<anonymous> (c:\snapshot\compiler\aoz.js:0:0) 
     at module._compile (pkg/prelude/bootstrap.js:1261:22) 
     at object.module._extensions..js (internal/modules/cjs/loader.js:787:10) 
     at module.load (internal/modules/cjs/loader.js:651:32) 
     at trymoduleload (internal/modules/cjs/loader.js:591:12) 
     at function.module._load (internal/modules/cjs/loader.js:583:3) 

 Internal error 
 Task failed, no code generated... 
 ```

Back