Editing Topic: RCR259 Project: RCR | RCRchive home

RCR 259: add begin= and end= to Range

submitted by tobi on Tue Jun 08 2004 08:23:01 AM -0700

Status: pending


Abstract

In addition to the begin and end methods of class Range, I could use begin= and end=

Problem

I need to change the begin and end of ranges, eg change a Range from 2..3 to 4..7 (the same object).

Proposal

Since I really do need and want this functionality, I implemented my own Range-like class, works like a charm (a bit too long to post though). But I thought that perhaps others might find begin= and end= useful too, that's why I propose to add them to the built-in Range class.

Analysis

[see above]


Back to RCRchive.


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