Alice Community  

Go Back   Alice Community > Alice 2 > Suggestion Box

Reply
 
Thread Tools Display Modes
Lbl/Goto
Old
DensetsuNoKaboom
Senior Member
 
DensetsuNoKaboom's Avatar
 
Status: Offline
Posts: 1,186
Join Date: May 2010
Location: e4eaf2
Default Lbl/Goto - 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.


Thank you for taking the time to read this signature. This signature loves you.
   
Reply With Quote
lbl/Goto
Old
djslater107
Administrator
 
Status: Offline
Posts: 144
Join Date: Jan 2007
Default lbl/Goto - 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...


Don Slater
Alice Team
Carnegie Mellon University
   
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



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