Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[ALLY] Enhancement Request - Range! datatype

From: al::bri::xtra::co::nz at: 20-Aug-2000 9:24

Currently there's a XY datatype in Rebol/View. Eg: 100x123 for 100 X, 123 Y. It would be nice to have a range, describing two endpoints. For example, Dates: 12/Jan/2000-24/Dec/2000 Integers: 1-10 Time: 09:00-17:00 Money: $10.00-$56.00 These would have refinements like: /Start or /Begin /End or /Finish /First /Last to access the first or last part of the range. 'first on: 12/Jan/2000-24/Dec/2000 like: first 12/Jan/2000-24/Dec/2000 would produce: 12/Jan/2000 and 'last on 12/Jan/2000-24/Dec/2000 like: last 12/Jan/2000-24/Dec/2000 would produce: 24/Dec/2000 Operations like: if now in 12/Jan/2000-24/Dec/2000 [print "mostly in this year!] would be nice as well. This has been CC-ed to [feedback--rebol--com]. Any comments? Andrew Martin ICQ: 26227169 http://members.xoom.com/AndrewMartin/