This might be more helpful to you than to me. I was trying to figure out how to utilize labels in relation to the titles of articles I write at my site. Labels in this case is how I might classify an article which might help in regard to people being able to find this article say at Google or other search engines. Obviously I haven't mastered this aspect of blogging but I'm beginning to try to understand this better. It didn't used to be a problem before the operating system changed here at blogspot (blogger.com) but it appears to have become more of a problem now. Everything changes with time and we each must evolve in our awarenesses with the times I guess. Though I studied to become a network engineer in 1998 at Wave Technologies near the San Jose Airport a lot has changed since then. At that time I met interesting people like the man who originally designed Adobe Photoshop so really proficient computer and software designers were studying all this with me then. But, that was around 23 years ago now. IT's hard to keep up with all the changes online now because everything keeps changing so fast.
If you are starting a blog now or want to transfer your domain so it is less expensive or more functional in various ways to run here is someplace that might be helpful to you:
https://wordpress.com/start/domains/use-your-domain/en
begin quote from:
Label (computer science)
A label in a programming language is a sequence of characters that identifies a location within source code. In most languages labels take the form of an identifier, often followed by a punctuation character (e.g., a colon). In many high level programming languages the purpose of a label is to act as the destination of a GOTO statement.[1][2] In assembly language labels can be used anywhere an address can (for example, as the operand of a JMP or MOV instruction).[3] Also in Pascal and its derived variations. Some languages, such as Fortran and BASIC, support numeric labels.[4] Labels are also used to identify an entry point into a compiled sequence of statements (e.g., during debugging).
C[edit]
In C a label identifies a statement in the code. A single statement can have multiple labels. Labels just indicate locations in the code and reaching a label has no effect on the actual execution.
Function labels[edit]
Function labels consist of an identifier, followed by a colon. Each such label points to a statement in a function and its identifier must be unique within that function. Other functions may use the same name for a label. Label identifiers occupy their own namespace – one can have variables and functions with the same name as a label.
Here error is the label. The statement goto can be used to jump to a labeled statement in the code. After a goto, program execution continues with the statement after the label.
Switch labels[edit]
Two types of labels can be put in a switch statement. A case label consists of the keyword case, followed by an expression that evaluates to integer constant. A default label consists of the keyword default. Case labels are used to associate an integer value with a statement in the code. When a switch statement is reached, program execution continues with the statement after the case label with value that matches the value in the parentheses of the switch. If there is no such case label, but there is a default label, program execution continues with the statement after the default label. If there is no default label, program execution continues after the switch.
Within a single switch statement, the integer constant associated with each case label must be unique. There may or may not be a default statement. There is no restriction on the order of the labels within a switch. The requirement that case labels values evaluate to integer constants gives the compiler more room for optimizations.
Examples[edit]
Javascript[edit]
In JavaScript language syntax statements may be preceded by the label:
It also possible to use break statement to break out of the code blocks:
Common Lisp[edit]
In Common Lisp two ways of defining labels exist. The first one involves the tagbody special operator. Distinguishing its usage from many other programming languages that permit global navigation, such as C, the labels are only accessible in the context of this operator. Inside of a tagbody labels are defined as forms starting with a symbol; the go special form permits a transfer of control between these labels.[5]
A second method utilizes the reader macros #n= and #n#, the former of which labels the object immediately following it, the latter refers to its evaluated value.[6] Labels in this sense constitute rather an alternative to variables, with #n= declaring and initializing a “variable” and #n# accessing it. The placeholder n designates a chosen unsigned decimal integer identifying the label.
Apart from that, some forms permit or mandate the declaration of a label for later referral, including the special form block which prescribes a naming, and the loop macro that can be identified by a named clause. Immediate departure from a named form is possible by using the return-from special operator.
In a fashion similar to C, the macros case, ccase, ecase,[7] typecase, ctypecase and etypecase define switch statements.[8]
See also[edit]
References[edit]
- ^ C Standard section 6.8.6.1 The goto statement
- ^ "GOTO Statement QuickSCREEN". Microsoft. 1988. Retrieved 2008-07-03.
- ^ O. Lawlor. "nasm x86 Assembly". Retrieved 2008-07-03.
- ^ "Differences Between GW-BASIC and QBasic". Archived from the original on 2010-02-10.
- ^ Kent Pitman. "CLHS: Special Operator TAGBODY". Retrieved 2020-08-18.
- ^ Kent Pitman. "CLHS: Section 2.4.8". Retrieved 2020-08-18.
- ^ Kent Pitman. "CLHS: Macro CASE, CCASE, ECASE". Retrieved 2020-08-20.
- ^ Kent Pitman. "CLSH: Macro TYPECASE, CTYPECASE, ETYPECASE". Retrieved 2020-08-20.
No comments:
Post a Comment