L03-SMALLTALK
Utilizando Dolphin Smalltalk es necesaria la sintaxis escrita sintaxis para lograr lo siguiente.
Generar objetos:
driver := Driver new.
Condicionales:
a := 0.
(a = 0)
ifTrue: [Transcript show: 'A is True'; cr.].
Generar objetos:
driver := Driver new.
Condicionales:
a := 0.
(a = 0)
ifTrue: [Transcript show: 'A is True'; cr.].
Ciclos for
1 to: 10 by: 2 do: [:x | Transcript show: 'Hello '.].
Arreglos
mixedlist := #( 'one' 2 (3 4 5) $6 )
Cadenas:
a := 'Hello'.
Llamadas a metodos:
Method: value
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home