mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-23 17:41:41 +00:00
Update red.html.markdown
Equality sign means equal
This commit is contained in:
parent
d1376f0152
commit
22ebe9a9b4
@ -42,9 +42,10 @@ comment {
|
||||
; forbidden, because that is how hexadecimal numbers are expressed in Red and
|
||||
; Red/System.
|
||||
|
||||
; assign a value to a variable using a colon ':'
|
||||
; assign a value to a variable using a colon ":"
|
||||
my-name: "Red"
|
||||
reason-for-using-the-colon: {This makes the equality sign '=' exclusively usable for comparisons purposes, thus speeding up the original Rebol interpreter.}
|
||||
reason-for-using-the-colon: {Assigning values using the colon makes the equality sign "=" exclusively usable for comparisons purposes, exactly what "=" was intended for in the first place! Remember this y = x + 1 and x = 1 => y = 2 stuff from school?
|
||||
}
|
||||
is-this-name-valid?: true
|
||||
|
||||
; print output using print, or prin for printing without a newline or linefeed at the ; end of the printed text.
|
||||
|
Loading…
Reference in New Issue
Block a user