Just another update

This commit is contained in:
Ingy döt Net 2015-02-20 00:35:01 -05:00
parent a25938f123
commit 00a190b0a6
6591 changed files with 94363 additions and 23227 deletions

View file

@ -1,4 +1,5 @@
{{basic data operation}}
Create a string variable equal to any text value. Create another string variable whose value is the original variable concatenated with another string literal.
{{basic data operation}}[[Category:Simple]]
Create a string variable equal to any text value.
Create another string variable whose value is the original variable concatenated with another string literal.
To illustrate the operation, show the content of the variables.

View file

@ -3,7 +3,7 @@ with Ada.Text_IO; use Ada.Text_IO;
procedure String_Concatenation is
S : String := "Hello";
begin
Put_Line (S & " literal");
Put_Line (S);
declare
S1 : String := S & " literal";
begin

View file

@ -1,4 +1,4 @@
//to be compiled using dylan.NET v. 11.3.1.3 or later.
//to be compiled using dylan.NET v. 11.5.1.2 or later.
#refstdasm mscorlib.dll
import System
@ -6,7 +6,7 @@ import System
assembly concatex exe
ver 1.3.0.0
class public auto ansi Module1
class public Program
method public static void main()
var s as string = "hello"

View file

@ -0,0 +1,5 @@
s = "hello"
t = s <> " literal"
IO.puts s
IO.puts t

View file

@ -0,0 +1,4 @@
a = "hello "
print(a .. "world")
c = a .. "world"
print(c)

View file

@ -0,0 +1,4 @@
(let (str1 "foo")
(println str1)
(let (str2 (string str1 "bar"))
(println str2)))

View file

@ -1,20 +1,9 @@
/*
* String concatenation in Rust.
* Copyright by Shlomi Fish, 2013.
* Released under the MIT/X11 License
* ( http://en.wikipedia.org/wiki/MIT_License ).
* */
// rust 0.8
// rust 0.13
fn main() {
let s = ~"hello";
println!("s={}", s + " world");
let s = "hello".to_string();
println!("{}", s);
let s1 = s + " world";
println!("s1={}", s1);
let mut mutable_s = ~"hello";
mutable_s.push_str(" world");
println!("mutable_s={}", mutable_s);
println!("{}", s1);
}

View file

@ -0,0 +1,4 @@
s1="Hello"
s1+" world!"
s2=s1+" world"
s2