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

[REBOL] Re: YYYYMMDD date format

From: mat:eurogamer at: 14-Nov-2000 16:20

Heya johnkenyon, juic> pad: func [ value (integer!) figures (integer!) ] [ juic> out: copy "" juic> loop figures - length? to-string value [ append out "0" ] juic> append out value juic> ] Heh, that is is the same way I did it albeit you did it more looking like Rebol than some spastic BASIC/Arexx type stuff I did :) What sort of annoys me is the logical way of approaching this problem is like this; value: rejoin [ "00" value ] value: make integer! right [ value 3 ] All you need is keywords like left and right. Pos does mid, just dandy. juic> Arexx parse was nice but rebol parse is good fun. Just keep trying the juic> examples and you never know... I need more examples of all code. That's the way I tend to learn. The script library on is often written by guys showing the most compact form. Unfortunately Rebol in compact form (IE with loads strings of cascading keywords in a block) is very difficult to work out. My current nightmare is trying to figure out how to do buffered reading and writing. IE reading of a big file from a URL and having it spool to a file rather than trying to be buffered (/direct just cuts off for some reason and there's no good explanation in any texts on how to use /direct properly) I need to write a copy routine which copies from one URL to another (latter being FTP), without shoving in memory. There's an example on but this bizarrely just sends small bits of data to the FTP and appends it rather than keeping a stream going. Any clues? -- Mat Bettinson - EuroGamer's Gaming Evangelist with a Goatee |