fork download
  1. UndefinedObject extend [
  2. plusLit [^3+4]
  3. plusNonLit [^3 + OrderedCollection new]
  4. ]
  5.  
  6. (UndefinedObject >> #plusLit) inspect printNl
  7. (UndefinedObject >> #plusNonLit) inspect printNl
Success #stdin #stdout 0s 337216KB
stdin
Standard input is empty
stdout
An instance of CompiledMethod
  header: 64
  Header Flags: 
    flags: 0
    primitive index: 0
    number of arguments: 0
    number of temporaries: 0
    number of literals: 0
    needed stack slots: 8
  descriptor: a MethodInfo
  byte codes: [
    [1]	source code line number 2
    [3]	push 3
    [5]	push 4
	send 1 args message #+
    [7]	return stack top
  ]
UndefinedObject>>plusLit
An instance of CompiledMethod
  header: 64
  Header Flags: 
    flags: 0
    primitive index: 0
    number of arguments: 0
    number of temporaries: 0
    number of literals: 1
    needed stack slots: 8
  descriptor: a MethodInfo
  literals: [
    [1]	{Smalltalk.OrderedCollection}
  ]
  byte codes: [
    [1]	source code line number 3
    [3]	push 3
    [5]	push Global Variable {Smalltalk.OrderedCollection}
    [7]	send 0 args message #new
    [9]	send 1 args message #+
   [11]	return stack top
  ]
UndefinedObject>>plusNonLit