View this PageEdit this PageUploads to this PageHistory of this PageHomeRecent ChangesSearchHelp Guide

ANSI

Quando o projeto Merlin começou em 1984, me parecia claro que a linguagem Smalltalk não poderia ter uma boa divulgação no Brasil se não fosse traduzida para Português. Ao contrário do Basic, C ou Pascal no qual quase todas as palavras que aparecem (apareciam, as coisas mudaram de lá para cá) são criadas pelo próprio programador. Decorar FOR, GOTO, NEXT e PRINT não era um esforço muito grande. Mas o Smalltalk-80 vinha com uma grande biblioteca predefinida e eu usei a lista do "blue book" para traduzir a linguagem para Português. Infelizmente este trabalho está em disquettes de Apple II, de modo que é mais fácil repetí-lo.

O Smalltalk evoluiu nestes 20 anos e foi definido um padrão oficial pela American National Standards Institute.

Apenas os termos mais importantes aparecem na tradução abaixo, e a numeração dos elementos segue a versão preliminar 1.9 do padrão. Quando a tradução está num texto corrigo o original aparece depois entre parenteses. Quando está na forma de tabela, a coluna da esquerda é a tradução e da direita o original.

3.3.2.3 Behavior Specification

Restricted Selectors:

seVerdade: ifTrue:
seVerdade:seFalso: ifTrue:ifFalse:
seFalso: ifFalse:
seFalso:seVerdade: ifFalse:ifTrue:
a:faça: to:do:
a:pulando:faça: to:by:do:
e: and:
ou: or:
== ==
vezesRepita: timesRepeat:
emBásico: basicAt:
emBásico:ponha: basicAt:put:
tamanhoBásico basicSize
novoBásico: basicNew:

3.4.7 Reserved Identifiers


verdade true
falso false
nulo nil
auto self
super super

5.2 Standard Globals

Vetor Array
Saco Bag
VetorDeBytes ByteArray
DataEHora DateAndTime
Dicionário Dictionary
ErroDeDuração DurationError
Excessão Exception
FileStream
Float
FloatD
FloatE
FloatQ
Fraction
DicionárioDeIdentidade IdentityDictionary
Intervalo Interval
MensagemNãoEntendida MessageNotUnderstood
Notificação Notification
Objeto Object
ColeçãoOrdenada OrderedCollection
ReadStream
ReadWriteStream
Conjunto Set
ColeçãoSortida SortedCollection
String
HoraLocal TimeLocal
Transcript
Aviso Warning
WriteStream
DivisãoPorZero ZeroDivide

5.3.1 Protocol: Object


Globals

Inteiro Integer
Número Number
DecimalComEscala ScaledDecimal
Símbolo Symbol

Messages

= =
== ==
~= ~=
~~ ~~
classe class
copie copy
nãoEntende: doesNotUnderstand:
erro: error:
hash
identityHash
éTipoDe: isKindOf:
éMembroDe: isMemberOf:
éNulo isNil
nãoNulo notNil
perform:
perform:with:
perform:with:with:
perform:with:with:with:
perform:withArguments:
imprimaEm: printOn:
printString
respondeA: respondsTo:
siMesmo yourself

5.3.2 Protocol: nil


Messages

printString

5.3.3 Protocol: boolean


Messages

& &
| |
e: and:
eqv: eqv:
seFalso: ifFalse:
seFalso:seVerdade: ifFalse:ifTrue:
seVerdade: ifTrue:
seVerdade:seFalso: ifTrue:ifFalse:
não not
ou: or:
printString
ouX: xor:

5.3.4 Protocol: Character


Messages

=
asLowercase
asString
asUppercase
codePoint
isAlphaNumeric
isDigit
isLetter
isLowercase
isUppercase

5.3.5 Protocol: Character Factory


Globals

Character

Messages

codePoint:
cr
lf
space
tab

5.3.6 Protocol: failedMessage


Messages

arguments
selector

5.3.8 Protocol: classDescription


Messages

todasSubclasses allSubclasses
todasSuperclasses allSuperclasses
nome name
subclasses subclasses
superclasse superclass

5.3.9 Protocol: instantiator


Messages

novo new

5.3.10 Protocol: Object class


Globals

Objeto Object

Messages

novo new

5.4.1 Protocol: valuable


Messages

argumentCount
valueWithArguments:

5.4.2 Protocol: niladicValuable


Messages

argumentCount
value
whileFalse
whileFalse:
whileTrue
whileTrue:

5.4.3 Protocol: niladicBlock


Messages

ensure:
ifCurtailed:
on:do:

5.4.4 Protocol: monadicValuable


Messages

argumentCount
value:

5.4.6 Protocol: dyadicValuable


Messages

argumentCount
value:value:

5.5.1 Protocol: exceptionDescription


Messages

defaultAction
description
isResumable
messageText
tag

5.5.2 Protocol: exceptionSignaler


Messages

signal
signal:

5.5.3 Protocol: exceptionBuilder


Messages

messageText:

5.5.4 Protocol: signaledException


Messages

isNested
outer
pass
resignalAs:
resume
resume:
retry
retryUsing:
return
return:

5.5.5 Protocol: exceptionSelector


Messages

,
handles:

5.5.6 Protocol: exceptionInstantiator


Messages

new
signal

5.5.7 Protocol: Exception class


Globals

Exception

Messages

handles:
new
signal

5.5.9 Protocol: Notification class


Globals

Notification

Messages

new

5.5.10 Protocol: Notification


Messages

defaultAction
isResumable

5.5.11 Protocol: Warning class


Globals

Warning

Messages

new

5.5.12 Protocol: Warning


Messages

defaultAction

5.5.13 Protocol: Error class


Globals

Error

Messages

new

5.5.14 Protocol: Error


Messages

defaultAction
isResumable

5.5.15 Protocol: ZeroDivide factory


Globals

ZeroDivide

Messages

dividend:
signal

5.5.16 Protocol: ZeroDivide


Messages

dividend
isResumable

5.5.17 Protocol: MessageNotUnderstoodSelector


Globals

MessageNotUnderstood

Messages

handles:

5.5.18 Protocol: MessageNotUnderstood


Messages

message
isResumable
message
receiver

5.5.19 Protocol: ExceptionSet


Messages

,

5.6.1 Protocol: magnitude


Messages

<
<=
>
>=
between:and:
max:
min:

5.6.2 Protocol: number


Messages

*
+
-
//
<
=
>
\\
abs
asFloat
asFloatD
asFloatE
asFloatQ
asFraction
asInteger
asScaledDecimal:
ceiling
floor
fractionPart
integerPart
negated
negative
positive
printString
quo:
raisedTo:
raisedToInteger:
reciprocal
rem:
rounded
roundTo:
sign
sqrt
squared
strictlyPositive
to:
to:by:
to:by:do:
to:do:
truncated
truncateTo:

5.6.3 Protocol: rational


Messages

denominator
numerator

5.6.4 Protocol: Fraction


Messages

denominator
numerator8
printString

5.6.5 Protocol: integer


Messages

allMask:
anyMask:
asScaledDecimal:
bitAnd:
bitAt:
bitAt:put:
bitOr:
bitShift:
bitXor:
even
factorial
gcd:
highBit
lcm:
noMask:
odd
printStringRadix:
printOn:base:showRadix:

5.6.6 Protocol: scaledDecimal


Messages

scale

5.6.7 Protocol: Float


Messages

=
arcCos
arcSin
arcTan
cos
degreesToRadians
exp
floorLog:
ln
log:
printString
radiansToDegrees
sin
tan

5.6.8 Protocol: floatCharacterization


Globals

Float
FloatE
FloatD
FloatQ

Messages

denormalized
e
emax
emin
epsilon
fmax
fmin
fminDenormalized
fminNormalized
pi
precision
radix

5.6.9 Procotol: Fraction factory


Globals

Fraction

Messages

numerator:denominator:

5.78.1 Protocol: collection


Messages

allSatisfy:
anySatisfy:
asArray
asBag
asByteArray
asOrderedCollection
asSet
asSortedCollection
asSortedCollection:
collect:
detect:
detect:ifNone:
do:
do:separatedBy:
includes:
inject:into:
isEmpty
notEmpty
occurrencesOf:
rehash
reject:
select:
size

5.7.2 Protocol: abstracDictionary


Messages

addAll:
at:
at:ifAbsent:
at:ifAbsentPut:
at:put:
collect:
includesKey:
keyAtValue:
keyAtValue:ifAbsent:
keys
keysAndValuesDo:
keysDo:
reject:
removeAllKeys:
removeAllKeys:ifAbsent:
removeKey:
removeKey:ifAbsent:
select:
values

5.7.5 Protocol: extensibleCollection


Messages

add:
addAll:
remove:
remove:ifAbsent:
removeAll:

5.7.6 Protocol: Bag


Messages

add:
add:withOccurrences:
addAll:
collect:

5.7.7 Protocol: Set


Messages

add:
addAll:
collect:

5.7.8 Protocol: sequencedReadableCollection


Messages

,
=
after:
at:
at:ifAbsent:
before:
copyFrom:to:
copyReplaceAll:with:
copyReplaceFrom:to:with:
copyReplaceFrom:to:withObject:
copyReplacing:withObject:
copyWith:
copyWithout:
do:
findFirst:
findLast:
first
from:to:do:
from:to:keysAndValuesDo:
indexOf:
indexOf:ifAbsent:
indexOfSubCollection:startingAt:
indexOfSubCollection:startingAt:ifAbsent:
keysAndValuesDo:
last
reverse
reverseDo:
with:do:

5.7.9 Protocol: Interval


Messages

,
collect:
copyFrom:to:
copyReplaceAll:with:
copyReplaceFrom:to:with:
copyReplaceFrom:to:withObject:
copyReplacing:withObject:
copyWith:
copyWithout:
reject:
reverse
select:

5.7.10 Protocol: readableString


Messages

,
<
<=
>
>=
asLowercase
asString
asSymbol
asUppercase
copyReplaceAll:with:
copyReplaceFrom:to:with:
copyReplacing:withObject:
copyWith:
sameAs:
subStrings:

5.7.11 Protocol: symbol


Messages

asString
asSymbol

5.7.12 Protocol: sequencedCollection


Messages

at:put:
atAll:put:
atAllPut:
replaceFrom:to:with:
replaceFrom:to:with:startingAt:
replaceFrom:to:withObject:

5.7.13 Protocol: String


Messages

asString

5.7.16 Protocol: sequencedContractibleCollection


Messages

removeAtIndex:
removeFirst
removeLast

5.7.17 Protocol: SortedCollection


Messages

,
add:
asSortedCollection
collect:
copyReplaceAll:with:
copyReplaceFrom:to:with:
copyReplaceFrom:to:withObject:
copyReplacing:withObject:
reverse
sortBlock
sortBlock:

5.7.18 Protocol: OrderedCollection


Messages

add:
add:after:
add:afterIndex:
add:before:
add:beforeIndex:
addAll:after:
addAll:afterIndex:
addAll:before:
addAll:beforeIndex:
addAllFirst:
addAllLast:
addFirst:
addLast:

5.7.19 Protocol: Interval factory


Globals

Interval

Messages

from:to:
from:to:by:

5.7.20 Protocol: collection factory


Messages

new
new:

5.7.21 Protocol: Dictionary factory


Globals

Dictionary

Messages

new
new:
withAll:

5.7.22 Protocol: IdentityDictionary factory


Globals

IndentityDictionary

Messages

new
new:
withAll:

5.7.23 Protocol: initializableCollection factory


Messages

with:
with:with:
with:with:with
with:with:with:with:
withAll:

5.7.24 Protocol: Array factory


Globals

Array

Messages

new
new:
with:
with:with:
with:with:with
with:with:with:with:
withAll:

5.7.25 Protocol: Bag factory


Globals

Bag

Messages

new
new:
with:
with:with:
with:with:with
with:with:with:with:
withAll:

5.7.26 Protocol: ByteArray factory


Globals

ByteArray

Messages

new
new
with:
with:with:
with:with:with
with:with:with:with:
withAll:

5.7.27 Protocol: OrderedCollection factory


Globals

OrderedCollection

Messages

new
new:
with:
with:with:
with:with:with
with:with:with:with:
withAll:

5.7.28 Protocol: Set factory


Globals

Set

Messages

new
new:
with:
with:with:
with:with:with
with:with:with:with:
withAll:

5.7.29 Protocol: SortedCollection factory


Globals

SortedCollection

Messages

new
new:
sortBlock:
with:
with:with:
with:with:with
with:with:with:with:
withAll:

5.7.30 Protocol: String factory


Globals

String

Messages

new
new:
with:
with:with:
with:with:with
with:with:with:with:
withAll:

5.8.1 Protocol: DateAndTime


Messages

+
-
<
=
>
asLocal
asUTC
dayOfMonth
dayOfWeek
dayOfWeekAbbreviation
dayOfWeekName
dayOfYear
hour
hour12
hour24
isLeapYear
meridianAbbreviation
minute
month
monthAbbreviation
monthName
offset
offset:
printString
second
timeZoneAbbreviation
timeZoneName
year

5.8.2 Protocol: Duration


Messages

*
+
-
/
<
=
>
asSeconds
abs
days
hours
minutes
negated
negative
positive
printString
seconds

5.8.3 Protocol: Duration factory


Globals

Duration

Messages

days:hours:minutes:seconds:
seconds:
zero

5.8.4 Protocol: DateAndTime factory


Globals

DateAndTime

Messages

clockPrecision
year:month:day:hour:minute:second:
year:month:day:hour:minute:second:offset:
year:day:hour:minute:second:
year:day:hour:minute:second:offset:
now

5.9.1 Protocol: sequencedStream


Messages

close
contents
isEmpty
position
position:
reset
setToEnd

5.9.2 Protocol: gettableStream


Messages

atEnd
do:
next
next:
nextLine
nextMatchFor:
peek
peekFor:
skip:
skipTo:
upTo:

5.9.3 Protocol: collectionStream


Messages

contents

5.9.4 Protocol: puttableStream


Messages

cr
flush
nextPut:
nextPutAll:
space
tab

5.9.5 Protocol: ReadStream


Messages

next:
upTo:

5.9.8 Protocol: Transcript


Globals

Transcript

5.9.9 Protocol: ReadStream factory


Globals

ReadStream

Messages

on:

5.9.10 Protocol: ReadWriteStream factory


Globals

ReadWriteStream

Messages

with:

5.9.11 Protocol: WriteStream factory


Globals

WriteStream

Messages

with:

5.10.1 Protocol: FileStream


Messages

contents
externalType
isBinary
isText

5.10.2 Protocol: readFileStream


Messages

next:
upTo:

5.10.4 Protocol: FileStream factory


Globals

FileStream

Messages

read:
read:type:
write:
write:mode:
write:mode:check:type: