8.58. File tom/Pointer

class tom.Pointer

This Pointer class is a simple object wrapper around an object value.

inherits

State supers: State

methods


int (result)
  hash pointer p;

Hash the pointer p. This hashes the pointer in a way similar to the hashq method of All.


instance (id)
  with pointer p;

Simple allocator.

instance tom.Pointer

variables

public pointer value;

Our value.

methods


id (self)
  init pointer p;

Designated initializer.


boolean
  dump_simple_p;

Return YES.


boolean
  equal Pointer other;

Compare our value with the other's.


int
  hash;

Return the hashed pointer value.


OutputStream
  write OutputStream s;

Similar to a Number, a Pointer simply outputs the value.