Alice Community

Alice Community (
-   Suggestion Box (
-   -   Lbl/Goto (

DensetsuNoKaboom 09-16-2012 12:50 PM

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 11: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...

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

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