We are currently working on new rules for what content should and shouldn't be allowed on this website, and are looking for feedback! See Esolang:2026 topicality proposal to view and give feedback on the current draft.

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++.