[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

[ANN] cursor-0.5

Eric Mahurin

5/20/2005 12:09:00 AM

I just released the gem package cursor-0.5 on rubyforge:

http://rubyforge.org/frs/download.php/4500/curs...

If you've used the iterator (external iterator API) package, I
believe it has a superset of the functionality. Here is the
description I have for the base class:

"An object in this Cursor class can be best thought of as a
cursor in a text editor. Many of the same operations apply -
insert, delete, replace, copy, paste, move, goto begin/end,
mark position, goto mark, etc. Unlike a text editor, this class
can operate on variety of data, not just characters and
strings. It is up to the derived classes to deal with what type
of data is stored (i.e. characters, arbitrary array objects)
and how it is stored (in an Array, String, IO, mapping to
another Cursor, etc)."

The is an initial release that focuses on the functionality and
tries to give a robust API (mimics stuff in IO, Array/String,
is Enumerable, is Rangable, is Comparable). The derived
classes are minimally implemented and not very efficient (and
some cases terribly inefficient).

Sorry, no examples yet. And testing was minimal.



__________________________________
Yahoo! Mail Mobile
Take Yahoo! Mail with you! Check email on your mobile phone.
http://mobile.yahoo.com/...


1 Answer

Aleksi

5/20/2005 8:31:00 AM

0

Eric Mahurin wrote:
> I just released the gem package cursor-0.5 on rubyforge:

Sounds interesting.

> The is an initial release that focuses on the functionality and
> tries to give a robust API (mimics stuff in IO, Array/String,
> is Enumerable, is Rangable, is Comparable). The derived
> classes are minimally implemented and not very efficient (and
> some cases terribly inefficient).

Could you tell a bit more in detail how does your goal differ from let's
say MetaRuby.

Not this MetaRuby

http://www.zenspider.com/Languages/Ruby/Met... but instead this

but original one

http://raa.ruby-lang.org/project...

which source code you can apprently view here

http://raa.ruby-lang.org/gonzui/marku...

and which quite old source balls might be here

http://artengine.ca/matju...

The concept of Hollowness comes through as similar goal in yours and
Matju's work.

- Aleksi