          |
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
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
Messages
| | codePoint: |
| | cr |
| | lf |
| | space |
| | tab |
5.3.6 Protocol: failedMessage
Messages
5.3.8 Protocol: classDescription
Messages
| todasSubclasses | allSubclasses |
| todasSuperclasses | allSuperclasses |
| nome | name |
| subclasses | subclasses |
| superclasse | superclass |
5.3.9 Protocol: instantiator
Messages
5.3.10 Protocol: Object class
Globals
Messages
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
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
5.5.3 Protocol: exceptionBuilder
Messages
5.5.4 Protocol: signaledException
Messages
| | isNested |
| | outer |
| | pass |
| | resignalAs: |
| | resume |
| | resume: |
| | retry |
| | retryUsing: |
| | return |
| | return: |
5.5.5 Protocol: exceptionSelector
Messages
5.5.6 Protocol: exceptionInstantiator
Messages
5.5.7 Protocol: Exception class
Globals
Messages
5.5.9 Protocol: Notification class
Globals
Messages
5.5.10 Protocol: Notification
Messages
| | defaultAction |
| | isResumable |
5.5.11 Protocol: Warning class
Globals
Messages
5.5.12 Protocol: Warning
Messages
5.5.13 Protocol: Error class
Globals
Messages
5.5.14 Protocol: Error
Messages
| | defaultAction |
| | isResumable |
5.5.15 Protocol: ZeroDivide factory
Globals
Messages
5.5.16 Protocol: ZeroDivide
Messages
5.5.17 Protocol: MessageNotUnderstoodSelector
Globals
Messages
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
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
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
Messages
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
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
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
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
Messages
5.7.20 Protocol: collection factory
Messages
5.7.21 Protocol: Dictionary factory
Globals
Messages
5.7.22 Protocol: IdentityDictionary factory
Globals
Messages
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
Messages
| | new |
| | new: |
| | with: |
| | with:with: |
| | with:with:with |
| | with:with:with:with: |
| | withAll: |
5.7.25 Protocol: Bag factory
Globals
Messages
| | new |
| | new: |
| | with: |
| | with:with: |
| | with:with:with |
| | with:with:with:with: |
| | withAll: |
5.7.26 Protocol: ByteArray factory
Globals
Messages
| | new |
| | new |
| | with: |
| | with:with: |
| | with:with:with |
| | with:with:with:with: |
| | withAll: |
5.7.27 Protocol: OrderedCollection factory
Globals
Messages
| | new |
| | new: |
| | with: |
| | with:with: |
| | with:with:with |
| | with:with:with:with: |
| | withAll: |
5.7.28 Protocol: Set factory
Globals
Messages
| | new |
| | new: |
| | with: |
| | with:with: |
| | with:with:with |
| | with:with:with:with: |
| | withAll: |
5.7.29 Protocol: SortedCollection factory
Globals
Messages
| | new |
| | new: |
| | sortBlock: |
| | with: |
| | with:with: |
| | with:with:with |
| | with:with:with:with: |
| | withAll: |
5.7.30 Protocol: String factory
Globals
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
Messages
| | days:hours:minutes:seconds: |
| | seconds: |
| | zero |
5.8.4 Protocol: DateAndTime factory
Globals
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
5.9.4 Protocol: puttableStream
Messages
| | cr |
| | flush |
| | nextPut: |
| | nextPutAll: |
| | space |
| | tab |
5.9.5 Protocol: ReadStream
Messages
5.9.8 Protocol: Transcript
Globals
5.9.9 Protocol: ReadStream factory
Globals
Messages
5.9.10 Protocol: ReadWriteStream factory
Globals
Messages
5.9.11 Protocol: WriteStream factory
Globals
Messages
5.10.1 Protocol: FileStream
Messages
| | contents |
| | externalType |
| | isBinary |
| | isText |
5.10.2 Protocol: readFileStream
Messages
5.10.4 Protocol: FileStream factory
Globals
Messages
| | read: |
| | read:type: |
| | write: |
| | write:mode: |
| | write:mode:check:type: |
|