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
| Sysop: | DaiTengu |
|---|---|
| Location: | Appleton, WI |
| Users: | 1,104 |
| Nodes: | 10 (0 / 10) |
| Uptime: | 492390:10:54 |
| Calls: | 14,151 |
| Calls today: | 2 |
| Files: | 186,281 |
| D/L today: |
2,873 files (1,061M bytes) |
| Messages: | 2,501,217 |
| Posted today: | 1 |