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

using nntp in rebol

 [1/5] from: galtbarber::mailandnews::com at: 21-Dec-2000 15:02


How do I post to a newsgroup? I figured out from the user guide how to read the list of newsgroups and how to then read the messages. How do I post my own question to the group. I could maybe use Netscape to do it but I would rather learn how to do it in rebol. I browsed quickly through the source for nntp.r, but it wasn't immediately obvious to me. Files like this would be a lot more useful if some examples of usage were given. -Galt tia

 [2/5] from: gchiu:compkarori at: 22-Dec-2000 12:15


On Thu, 21 Dec 2000 15:02:36 -0800 [galtbarber--mailandnews--com] wrote:
> Files like this would be a lot more useful if some > examples > of usage were given. >
Rebol for Dummies covers this, but I skimmed that section so can't help. -- Graham Chiu

 [3/5] from: galtbarber:mailandnews at: 21-Dec-2000 15:46


David Hawley wrote: I've looked through the wole dictionary and don't see a quick method for converting a decimal! to a string! with a specified format. I C I'd do something like: sprintf( destString, "%.2f", number); Is there something similar in REBOL or do I need a function?-- David L. Hawley D.L. Hawley and Associates 1.503.274.2242 Software Engineer [David--L--Hawley--computer--org] David, pi is a built-in constant of type decimal! When I say
>>to string! pi
== "3.14159265358979" so, it seems pretty easy. am I missing something? -Galt

 [4/5] from: rchristiansen:pop:isdfa:sei-it at: 21-Dec-2000 18:35


Here is something strange. Using "make string!" does not create a string! datatype from pi, but "to string!" does.
>> decimal? pi
== true
>> pie: make string! pi
== ""
>> pike: to string! pi
== "3.14159265358979"

 [5/5] from: allenk:powerup:au at: 22-Dec-2000 20:05


----- Original Message ----- From: <[galtbarber--mailandnews--com]> To: <[rebol-list--rebol--com]> Sent: Friday, December 22, 2000 9:02 AM Subject: [REBOL] using nntp in rebol
> How do I post to a newsgroup? > I figured out from the user guide how to read the list of newsgroups
<<quoted lines omitted: 5>>
> of usage were given. > -Galt
Have you read the How-to for it? http://www.rebol.com/howto.html#news.html Cheers, Allen K

Notes
  • Quoted lines have been omitted from some messages.
    View the message alone to see the lines that have been omitted