Alice Community

Alice Community (http://www.alice.org/community/index.php)
-   Suggestion Box (http://www.alice.org/community/forumdisplay.php?f=26)
-   -   Lbl/Goto (http://www.alice.org/community/showthread.php?t=9493)

DensetsuNoKaboom 09-16-2012 11:50 AM

Lbl/Goto
 
I was messing with a TI calculator the other day, and I discovered that I'm a nerd. Big surprise. But I also discovered that when programming in TI-BASIC you can create a label, like Lbl A, and then if you put Goto A then it will go to where you said Lbl A. So I think it would be cool if something like that were in Alice, unless it already is, and I just haven't found it.

djslater107 09-17-2012 10:17 AM

lbl/Goto
 
Features such as labels and goto belong to imperative programming languages, such as Basic. Labels and goto statements are the way that these types of languages implement methods, procedures, functions, or if you will, subroutines.

By writing methods and functions in Alice, and calling them when you need them, you are essentially do the same thing as using the labels / goto that you found in TI Basic...


All times are GMT -5. The time now is 10:10 AM.

Copyright ©2024, Carnegie Mellon University
Alice 2.x © 1999-2012, Alice 3.x © 2008-2012, Carnegie Mellon University. All rights reserved.