Editing Topic: RCR177 Project: RCR | RCRchive home

RCR 177: linking object : mapping on object from an other

submitted by bille2 on Sun Dec 21 2003 06:53:12 AM -0800

Status: pending


Abstract

In C language, you can >>link<< 1 variable with another. Indeed something like *c = *p, so change p to p = 2, and c would also take 2 as value.

Problem

I want some part of my ruby's object to be linked to existing ones from an other object

Proposal

So it would be nice if, for example : &c = &p and p = 2 produce c = 2

Analysis

I think it would be simple ...

Implementation

An simple memory link, as in C, where *c and *p involve that c and p share the same memory portion ! Many thanks for listening users !



Back to RCRchive.


RCR Submission page and RCRchive powered by Ruby, Apache, RuWiki (modified), and RubLog