World: r3wp
[!REBOL3-OLD1]
older newer | first last |
Pekr 15-Aug-2009 [16758] | echo? who want to work with file? Theat is weird. I want call being fixed, or it is good for nothing ... |
Henrik 15-Aug-2009 [16759] | I thought you wanted debug output. Otherwise wait until CALL is fixed. |
Paul 15-Aug-2009 [16760x3] | Pekr, what are yhou trying to do? |
Sounds like Pekr is trying to capture the output of a directory listing in R3, is that correct? | |
anyway Pekr, just use: call "cmd dir > somefile.txt" then you can just read the file back into a string. | |
Pekr 15-Aug-2009 [16763x2] | Paul - correct .... |
Paul - I know that is an option ... but what is it good then to get 'call output into console, if it can't be even easily captured into a string? | |
Paul 15-Aug-2009 [16765] | Isn't that a limitation of R3? |
Pekr 15-Aug-2009 [16766] | dunno. As an interim solution, you suggestion is good enough .... I'll wait for 'call being fixed/enhanced ... |
Paul 15-Aug-2009 [16767] | Yeah, we will have to wait and see if they develop 'call further. |
BrianH 15-Aug-2009 [16768] | CALL is in the host code. We'll fix it when the host code is released. |
Nicolas 16-Aug-2009 [16769] | Can anyone tell me how to view an image with r3? |
Steeve 16-Aug-2009 [16770] | Is it me, or the example to read a dns address is broken ??? >> print read dns://www.rebol.net |
Nicolas 16-Aug-2009 [16771x2] | I get |
make port! [ spec: make object! [ title: "DNS Lookup" scheme: 'dns ref: dns://www.rebol.net path: none host: "www.rebol.net" port-id: 80 ] scheme: make object! [ name: 'dns title: "DNS Lookup" spec: make object! [ title: none scheme: none ref: none path: none host: none port-id: 80 ] info: none actor: make native! [[]] awake: make function! [[event][print event/type true]] ] actor: make native! [[]] awake: make function! [[event][print event/type true]] state: #{} data: none locals: none ] | |
Steeve 16-Aug-2009 [16773] | Geez... >> first wait read dns://www.rebol.net read == 216.240.11.203 >> first wait read dns://216.240.11.203 read == "www.rebol.net" A little bit obfuscated, but it works... |
Henrik 16-Aug-2009 [16774] | Nicolas, VIEW in its built in state doesn't work properly, so do something like this: >> load-gui >> a: load http://arkandis.com/images/blog/google.gif >> b: make gob! [image: a] >> view b |
Nicolas 16-Aug-2009 [16775] | thanks Henrik |
Henrik 16-Aug-2009 [16776] | (This will be much easier in the future, I hope) |
Paul 16-Aug-2009 [16777] | I see Carl is going to add Read/Text functionality with UTF conversion. That is going to be sweet. That alone should begin to make REBOL3 useful. |
Sunanda 16-Aug-2009 [16778] | What is the point of /any on dir? As far as I can see, as soon as you add a wildcard char, dir?/any always returns true dir?/any %ddddff.file == false ;; no wild ==> false dir?/any %ddd?dff.file == true ;; wild ==> true dir?/any %ddd*dff.file == true ;; wild ==> true dir?/any http://www.test.com/file.html == false ;; no wild ==> false dir?/any http://www.test.com/*.html == true ;; wild: true |
Henrik 16-Aug-2009 [16779x2] | looks like a bug |
definitely a bug. please add it to curecode, thanks. | |
BrianH 16-Aug-2009 [16781x2] | It's already there - add your code as a comment on the existing DIR? /any ticket. |
The ticket in question is #649. | |
Sunanda 17-Aug-2009 [16783] | Thanks -- had not seen that ticket. |
Pekr 18-Aug-2009 [16784] | I proposed change of command! to external! extern! or something like that. We will see, if Carl reacts to that .... |
BrianH 18-Aug-2009 [16785] | The word "command" is more specific, and better expresses what you are referring to. |
Pekr 18-Aug-2009 [16786] | I have heard at least one other opinion, that name "command" might be too worthy to waste on simple and signle thing as wrapping merely a funciton call. Of course even Devices have commands, but those are not probably rebol level related and influence nothing ... |
BrianH 18-Aug-2009 [16787x2] | You mentioned that "command" would need to be reserved for devices. There's no reason that devices couldn't use the existing command! type. It's very flexible. |
Carl said that devices would be a variant on extensions. | |
Pekr 18-Aug-2009 [16789x2] | No, I said, that device commands probably don't influence rebol level code, so that we are eventually free to rename extension command to extension! term. That was just a thought, in case we would have some better usage for 'command term later. Nothing really important imo. Extension commands are not much advanced - they are just descriptor for particular meaning. |
When I think "command", I think - dialect ... | |
BrianH 18-Aug-2009 [16791] | Sorry, I wrote that in relation to what you had said on the blog, not here. |
Pekr 18-Aug-2009 [16792] | and to just describe meaning of wrapping a call, I though external!, extern!, ext!, wrap! could be used instead. Probably too late to try to convince anyone :-) |
BrianH 18-Aug-2009 [16793] | Those are all modifier words. We need a noun. |
Pekr 18-Aug-2009 [16794x2] | more interesting stuff on Chat :-) I expressed opinion, that we use assymetry for read and write with strings, Carl objected. His second post might be interesting for you, as he for few moments thought, where is the right place for such stuff. I think that you would enjoy putting your opinion there. Of course - my post was done just to provoke some discussion :-) |
btw - "external", english-wise, can't be thought as a noun? | |
BrianH 18-Aug-2009 [16796] | I just read it, and was about to reply to your counter-post, just to one point. External is an adjective. When used as a noun, its subject is implied. Bad form. |
Pekr 18-Aug-2009 [16797x2] | OK, just read your post, makes sense ... |
as for Chat - is there any shortcut to know, where I am posting by default? I mean - the only commands I use is "n" for new posts. The I want to add a reply. But adding a reply is different then simply posting "p". But - when adding a reply "r", I specify the message number, so I can be sure, where it goes. But where does simple "p" post it? | |
BrianH 18-Aug-2009 [16799x2] | In your current location (look at the prompt). |
r posts in the same header as the original post, but the post can be moved later. | |
Pekr 18-Aug-2009 [16801] | hardly to know (when using n, lm), what is your "original post" - is it the latest one? I simply have to go to particular message number, and then use 'p or 'r there .... I think that for 'lm, I would welcome message category/path being displayed on the first line .... |
BrianH 18-Aug-2009 [16802x2] | I use nn to determine the latest posts, then read the posst I want to reply to, then reply. |
The "original post" you are replying to is displayed by n or nn with a > on the left of it. I usually enter the number for the post I want to reply to first, which displays in and sets the >. Then I use r. I wish there was an rp command... | |
Pekr 18-Aug-2009 [16804] | So am I correct thinking, that when I use "p" after "n", then I am replying in the header of message marked with ">"? |
BrianH 18-Aug-2009 [16805x2] | r to reply, not p, but yes. |
It you do p, you post in the header you are in (you can tell which that is from the prompt). | |
Pekr 18-Aug-2009 [16807] | after "n", my prompt is: "pekr:>>" - so where actually I would post? :-) |
older newer | first last |