User:Alidonis12/sandbox/ref

From Esolang
Jump to navigation Jump to search

ref is a joke esolang made by User:Alidonis12. In ref, every variable and type is a reference to an object. There are no direct values. This means, every value type cannot be directly used. Instead, a reference to an object requires chaining member calls to do otherwise basic tasks. take the followinf sample code:

> var a = integer.new(integer->value->65) > a->add(integer->value->1) > a->output(stdout)

As shown here, integer is an object. using the add and output methods, you can manipulate the underlying memory.

Furthermore, you can do the same shitfuckery you would do with normalk pointers in C++.