Forums before death by AOL, social media and spammers... "We can't have nice things"
|    comp.lang.forth    |    Forth programmers eat a lot of Bratwurst    |    117,927 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 117,642 of 117,927    |
|    okflo@news.teletyp.ist to Anton Ertl    |
|    Re: making http request with gforth    |
|    25 Oct 25 15:49:50    |
   
   anton@mips.complang.tuwien.ac.at (Anton Ertl) writes:   
   Hi anton,   
      
   > anton@mips.complang.tuwien.ac.at (Anton Ertl) writes:   
   >>okflo@teletyp.ist writes:   
   >>>okflo@teletyp.ist writes:   
   >>>- I use global variables (in the dictionary) for curl-data and   
   >>> response-code. What would be the right way to do this locally in   
   >>> http-request? The usual locals are on a stack IMHO - so I would need   
   >>> to allocate cells?   
   >>   
   >>It seems to me that variable-flavoured locals would work here, i.e.:   
   >>   
   >>: http-request ( method url-addr url-len -- status content-addr content-len )   
   >> {: w^ curl-data w^ response-code :}   
   >   
   > Actually:   
   >   
   > : http-request ( method url-addr url-len -- status content-addr content-len )   
   > 0 0 {: w^ curl-data w^ response-code :}   
   >   
   > - anton   
      
   many thanks anton! liebe grüße aus salzburg   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   
|
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca