taweili / ardublock

ArduBlock is a Block Programming Language for Arduino.
GNU General Public License v3.0
414 stars 292 forks source link

Subroutine with variables #144

Open jm4r7in opened 8 years ago

jm4r7in commented 8 years ago

It's possible to make subroutine (for example do_this(), but is it possible to make subroutines which take variables (for example do_this(int with_that) ? It would be great ! Thanks you.

dimag0g commented 3 years ago

IMO this only makes sense if local variables are implemented. Copying a value from one global variable into another on a subroutine call makes no sense.

karlTH commented 3 years ago

In the version i've made there is subroutine with variables since many year : https://github.com/taweili/ardublock/issues/191#issuecomment-805381780

dimag0g commented 3 years ago

@karlTH can I see the source code implementing variables in subroutines?