PDA

View Full Version : Lbl/Goto


DensetsuNoKaboom
09-16-2012, 11:50 AM
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
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...