renciso218 / blockly

Automatically exported from code.google.com/p/blockly
0 stars 0 forks source link

Can't use the return value from procedure block. #62

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.Add a 'Procedure with return' block
2.Add a 'Call procedure' block

What is the expected output? What do you see instead?

Expected: There will be an output tab with 'call procedure block'.
But there's no 'output' tab with the block.

What browser are you using?

Google Chrome, Rockmelt

Please provide any additional information below.

language/common/procedures.js
-> Blockly.Language.procedures_defreturn
-> function getProcedureDef 

This function defined same as 
'Blockly.Language.procedures_defnoreturn.getProcedureDef'.
But, this should be like below.

getProcedureDef: function() {
    return [this.getTitleText('NAME'), true];
}

Original issue reported on code.google.com by 0x0badc...@gmail.com on 20 Jul 2012 at 8:43

GoogleCodeExporter commented 8 years ago
Sorry about this.  This bug introduced while working on procedure parameters.  
Fixed in r361.

Original comment by neil.fra...@gmail.com on 20 Jul 2012 at 6:25