The Artima Developer Community
Sponsored Link

Agile Buzz Forum
1's or 0's. A Follow Up.

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
James Robertson

Posts: 29924
Nickname: jarober61
Registered: Jun, 2003

David Buck, Smalltalker at large
1's or 0's. A Follow Up. Posted: Jan 22, 2005 8:27 AM
Reply to this message Reply

This post originated from an RSS feed registered with Agile Buzz by James Robertson.
Original Post: 1's or 0's. A Follow Up.
Feed Title: Travis Griggs - Blog
Feed URL: http://www.cincomsmalltalk.com/rssBlog/travis-rss.xml
Feed Description: This TAG Line is Extra
Latest Agile Buzz Posts
Latest Agile Buzz Posts by James Robertson
Latest Posts From Travis Griggs - Blog

Advertisement
A couple of months back, I surmised out loud what it would be like to be able to access sequences using both indexes AND offsets (like the C family of languages does). I ended up creating a small package called 0nBey0ndZer0 and using it for awhile. I have just replicated it to the Open Repository. Others may find use for it. I chose to use the idiom 'past:' and 'past:put:'. I wasn't ever really able to find a good preposition that is short and means 'offset'. I added upTo: variants for doing the '0 to: stop -1' pattern.

Having had this in my image for a while, I have to admit I've not used it as much as I anticipated I might have. It maybe because often when I want to use it, it's a ByteArray I'm crunching and I need the speed (this implementation is not about speed). Or maybe it's that I didn't get the method names right. I don't know. I have actually just removed the 4 or 5 uses I had of it, and retired it from the prerequisite list. Maybe somebody else will have better use of it. It was an interesting experiment.

Read: 1's or 0's. A Follow Up.

Topic: OCSTUG meeting Jan 19th Previous Topic   Next Topic Topic: Home field advantage

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use