[REBOL] Re: reduce [unset!] compose [(unset!)]

2004-05-23 Thread Romano Paolo Tenca
Hi Anton, reduce [unset! either none [][]] == [unset! unset] Why was the first unset! molded and the second formed? The difference is that: reduce [unset!] is a block! with a word! and when you evaluate it, the word get its value, which is the datatype! unset!. while: reduce

[REBOL] Re: Segmentation fault from http port

2004-05-21 Thread Romano Paolo Tenca
Hi, I repeatedly get a segmentation fault when trying to read http://home.tiscali.dk/Andy%20Warhol2.htm on a Mac OSX. Try to read the same URL from a Win2k, and do not get the fault. The URL behaves a bit funny (quasi-circular redirects). Turn on trace/net, and you'll see (but hurry, the URL

[REBOL] Re: Detecting connection closed.

2004-05-11 Thread Romano Paolo Tenca
Hi, Is there any way (without using 'wait) to datect if a tcp connection has been closed? If I try to 'insert into a port that has been closed by the peer it won't generate an error or anything. Ideas? Try: set-modes port [no-wait: true] none? copy port --- Ciao Romano -- To unsubscribe

[REBOL] Re: [trim][string] Something strange in the Rebol string ?

2004-05-04 Thread Romano Paolo Tenca
Hi, Seems to me the #386 bug. Do you agree? --- Ciao Romano - Original Message - From: Didec [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, May 04, 2004 2:54 PM Subject: [REBOL] Re: [trim][string] Something strange in the Rebol string ? Re: [trim][string] Something strange

[REBOL] Re: probe/dump-binary survey

2004-05-02 Thread Romano Paolo Tenca
Hi, Please consider that molded code should be able to be loaded back by rebol. So I say no. I agree. Could be an help service. --- Ciao Romano -- To unsubscribe from this list, just send an email to [EMAIL PROTECTED] with unsubscribe as the subject.

[REBOL] Re: [TYPE] weird return value

2004-04-21 Thread Romano Paolo Tenca
Hi. this is weird: type? /home/http/run/cohen/birds == /birds /birds is obviously not a type. What is happening here? It is happening that your are writing a line of code like this: type? /home /http /run /cohen /birds the / starts a refinement! word that ends at the next /

[REBOL] Re: [TYPE] weird return value

2004-04-21 Thread Romano Paolo Tenca
Hi, A path cannot start with /. grin On linux it does. tj A file! path can start with / also in Rebol: %/home/http/run/cohen/birds ;== %/home/http/run/cohen/birds and you can also do: home: %/home home/http/run/cohen/birds ;== %/home/http/run/cohen/birds --- Ciao Romano -- To

[REBOL] Re: FTP memory leak?

2004-04-18 Thread Romano Paolo Tenca
Hi, Smooth Copy is a backup application that I am writing. I have it encapped as smooth-copy.exe. It is a standard Windows error when a program crashes. Can't you isolate the problem? Do you see memory use increasing more and more with task manager? --- Ciao Romano -- To unsubscribe

[REBOL] Re: FTP memory leak?

2004-04-18 Thread Romano Paolo Tenca
Hi, Bo I'll add more logging to the script along with how many levels deep in recursion it is, what the memory usage is (system/stats), and what files it is copying to see if I can isolate the problem so I can then recreate and debug it. Well, i do not know if you use it, but use my version

[REBOL] Re: how do i use set-net to tell my email server what my password is?

2004-04-18 Thread Romano Paolo Tenca
no I want to send email through rebol. unfortunately my email account needs to have my password, also a username of name\domain instead of [EMAIL PROTECTED] which rebol quits on name\ Try: to email! name\domain --- Ciao Romano -- To unsubscribe from this list, just send an email

[REBOL] Re: FTP memory leak?

2004-04-17 Thread Romano Paolo Tenca
Smooth Copy has performed an illegal operation I did never see this error, what is Smooth Copy? --- Ciao Romano - Original Message - From: Bohdan or Rosemary Lechnowsky [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, April 17, 2004 6:07 AM Subject: [REBOL] Re: FTP memory leak?

[REBOL] Re: Source code modules.

2004-03-31 Thread Romano Paolo Tenca
Hi, I guess the real problem I have is that I don't know how to include the code that is in a module file in a way it would be bound to a context. For instance, I would like to create a file that would have the following function defind on it: test: func [ ] [ print Hello ] read

[REBOL] Re: [view][crash] concurrent do-events limit.

2004-03-29 Thread Romano Paolo Tenca
Hi Maxin and Marteens, Actually... the limit should be one, as a wait inside a wait is useless: a wait is for event processing so one is enough. Nesting waits makes no sense. As Carl once said: a wait is a wait ;-) Nesting makes sense: it is useful to let the system know where to go when

[REBOL] Re: [Bot] email command Bot

2004-03-28 Thread Romano Paolo Tenca
Hi Brett, Yes documentation is a weakness - especially for ports. Async, is somewhat special because I don't believe RT has finished that area of work. Some members of the community have jumped into fill some of the gaps which is good but confuses this area a bit - esp. for me. :-) I do not

[REBOL] Re: FTP make-dir/deep problem

2004-03-24 Thread Romano Paolo Tenca
Hi, make-dir/deep does not support FTP. --- Ciao Romano -- To unsubscribe from this list, just send an email to [EMAIL PROTECTED] with unsubscribe as the subject.

[REBOL] Re: FTP make-dir/deep problem

2004-03-24 Thread Romano Paolo Tenca
Hi Maxim, what's happening with the ftp patch compilation... has it been released? I released it, but it is waiting in the 1.3 queue. Code can be found on the web at the 1.3 page. and does it fix the problem with make-dir creating directories that end up in user root rather than in the

[REBOL] Re: [modal windows] [inform]

2004-03-24 Thread Romano Paolo Tenca
Hi, maxim what is the best way to open modal windows in view (windows which block events to other windows, like requesters and alerts). are there alternatives to using inform... IIRC it was quite buggy, and was prone to crash rebol... Inform has no bugs. It is the low-level handling of

[REBOL] Re: newbie question

2004-03-16 Thread Romano Paolo Tenca
Brondo, Greg, Where are things like open/lines/direct documented? If I execute 'help open' I can see 'open/lines' and 'open/direct' but no the 'open/lines/direct'. How is a newcomer to this language supposed to 'know' these things? Reading docs:

[REBOL] Re: async interface

2004-03-09 Thread Romano Paolo Tenca
Hi Andreas, ; default dispatcher handle: func [ port [port!] state [word! error!] ] [ either error? state [ on-error port state ] [ switch state [ connect [ on-connect port ] close [ on-close port ]

[REBOL] Re: async interface

2004-03-09 Thread Romano Paolo Tenca
Hi Anton, What were you thinking resolve* would be for ? Resolve can be ignored, but resolve can fail, like connect. I am asking it all that errors are a good thing. I am thinking to use words instead: dns-failure connect-failure errors could be used only for i/o errors This makes

[REBOL] Re: testing async://

2004-03-05 Thread Romano Paolo Tenca
Hi, Will The crash with waitlist probe should be a mold problem: it does not handle recursive pointer inside ports. --- Ciao Romano -- To unsubscribe from this list, just send an email to [EMAIL PROTECTED] with unsubscribe as the subject.

[REBOL] Re: /core async example

2004-03-05 Thread Romano Paolo Tenca
Hi Maarteen, Don't you think it would be a good idea to post it to rebol.org, so everybody gets noticed of little bugfixes and enhancements? Surely async:// adds enough to REBOL to let people use it/enhance it. That was a fast patch, here it is a correction. The dns://async port seems to

[REBOL] Re: /core async example

2004-03-05 Thread Romano Paolo Tenca
That was a fast patch, here it is a correction. The dns://async port seems to have some strange problems, this this a workaround: The workaround does not work perfectly. I am not able until now to understand when/where the bug happens. It seems to me that under some conditions (dns:///async

[REBOL] Re: Async:// loss of xml

2004-03-05 Thread Romano Paolo Tenca
check crlf and lf --- Ciao Romano - Original Message - From: Terry Brownell [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, March 05, 2004 9:02 PM Subject: [REBOL] Async:// loss of xml With other non async examples of using tcp, I was able to send the following xml tags to

[REBOL] Re: async interface

2004-03-05 Thread Romano Paolo Tenca
Hi Anton, The advantage of that over a single function, I suppose, is so that you can derive from a standard base object (or choose from several easy-to-use example objects), with the four functions [connect read write close] inside. I would be happy with that, if that was what you were

[REBOL] async interface

2004-03-04 Thread Romano Paolo Tenca
I should like to define a common (standard) interface for async protocols. I proposed some time ago an object! style, like the View feel, instead of the awake function. What do you think? --- Ciao Romano -- To unsubscribe from this list, just send an email to [EMAIL PROTECTED] with

[REBOL] Re: /core async example

2004-03-04 Thread Romano Paolo Tenca
Hi, Will I should write it in the following mode. Some notes: 1) you can set the awake function using make port! port: make port! [scheme: 'async host: hst port-id: 80 awake: :handl] you cannot use the words 'host or 'handler because the block is bound to the port before execution (like

[REBOL] Re: YAPAQ

2004-03-03 Thread Romano Paolo Tenca
If they are all valid rebol value, you can load the string or try this: str: {e1 e2 e 3 e4 eee 5 e6 ^{e 7^}} until [res: load/next str probe to string! res/1 tail? str: res/2] Else you must write a parse rule. --- Ciao Romano -- To unsubscribe from this list, just send an email to [EMAIL

[REBOL] Re: The complete Rebol named argument passing

2004-03-03 Thread Romano Paolo Tenca
Hi Anton, This sparks an idea for new syntax for me. How about: find/::case/::skip a b size That way you can pick and choose which refinements will be propagated and which are hard-coded. eg: find/::case/skip a b size This means: /case is propagated if case is true /skip is

[REBOL] Re: The complete Rebol named argument passing

2004-03-01 Thread Romano Paolo Tenca
Hi Gabriele RPT do-alt find /reverse false RPT find/alt /reverse false You can't have that, the best we could get is: I think that both are possible. I prefer the first one. The best option seems to be like Ladislav suggests, apply :find [reverse: true series: [a b c]

[REBOL] Re: The complete Rebol named argument passing

2004-03-01 Thread Romano Paolo Tenca
Hi Gabriele, arguments. To solve this you'd need to parenthesize all expressions. Yes. The do-alt function could have some limitations not present in the standard evaluation routine. But now I have another proposal, with less problems (I hope): a: abcd b: c case:

[REBOL] Re: The complete Rebol named argument passing

2004-02-27 Thread Romano Paolo Tenca
Hi Gabriele, This is the only case I would use APPLY for --- passing arguments and refinements from another function. If the block you pass APPLY is not constructed programmatically, then you don't need APPLY at all. But if it is, having everything in the same order as in the function

[REBOL] Re: The complete Rebol named argument passing

2004-02-27 Thread Romano Paolo Tenca
Hi Gabriele, Hmm, but if you have to construct the block, then why not constructing a path like Ladislav does in his functions. I don't see any advantage. I don't understand. The apply function was a your propose. --- Ciao Romano -- To unsubscribe from this list, just send an

[REBOL] Re: The complete Rebol named argument passing

2004-02-27 Thread Romano Paolo Tenca
I mean, that if you have to do something like: args: [1 2] if reverse [append args /reverse] if skip [repend args [/skip amount]] apply :find args then a native APPLY is useless, as you doing the same amount of work that Ladislav's function does. Ah, yes. It could

[REBOL] Re: The complete Rebol named argument passing

2004-02-26 Thread Romano Paolo Tenca
Hi Gabriele, RPT x: func [a /b c][] RPT ;can be called RPT x/b 1 2 RPT ;or RPT x/arg_block [1 /b 2] I think we just need an APPLY native function, apply :x [1 /b 2] or even: apply :x [1 true 2] that is probably closer to what REBOL does internally.

[REBOL] Re: The complete Rebol named argument passing

2004-02-26 Thread Romano Paolo Tenca
Hi Gabriele, Do you think you would use APPLY that way? I wouldn't. I would use it this way, instead: apply :find [ series value part range only case any with wild skip size match tail last reverse This is the only case in which you syntax has some

[REBOL] Re: The complete Rebol named argument passing

2004-02-26 Thread Romano Paolo Tenca
Hi Gabriele, RPT Refinement have not an order, like arguments. They do, the order in which they are defined in the function. Yes, but in Rebol this order is not important, while is important the arguments order, so it seems to me a wrong mode to extend the language, also because:

[REBOL] Re: The complete Rebol named argument passing

2004-02-26 Thread Romano Paolo Tenca
Hi Ladislav, all this stuff about arguments passing is very interesting for me, but remain always too complex for real usage. I think that is a need to change something about this stuff at native level. Do you have some ideas about new native, new syntax to make refinements and/or argument

[REBOL] Re: Can I define an anti function?

2004-02-24 Thread Romano Paolo Tenca
Ok, Lad this is my solution, (without refinements handling and without get and lit arguments and without optimizations) Do not read if you want to try by yourself. . . . . . . . . . . . . . . . . . . anti: func [[catch] :f /local body][ body: copy [] parse first :f [ some [ [end |

[REBOL] Re: Can I define an anti function?

2004-02-24 Thread Romano Paolo Tenca
Hi Anton, That is the serialization of a native function referenced directly. In this case happens to be the 'not function. As you can understand, native functions cannot be serialized, and mold put a 'native word for every native it should serialize. It also outputs 'op for every op! and

[REBOL] Re: Can I define an anti function?

2004-02-24 Thread Romano Paolo Tenca
Hi Lad, I have got a few notes: 1) I am still not convinced, that a get argument, (alias fetched argument) is a good argument passing method. The disadvantage of it is, that you cannot easily supply a result of an expression as an argument. yes, but it is so elegant to write anti

[REBOL] Re: Can I define an anti function?

2004-02-24 Thread Romano Paolo Tenca
..., but it wouldn't work for some cases. Have a look at http://www.compkarori.com/vanilla/display/subfunc.r , which does (essentially) the same thing ;-) and is optimized for speed by Romano (I recently found that some improvements can still be made - 67% speed-up and a correction for

[REBOL] Re: Can I define an anti function?

2004-02-23 Thread Romano Paolo Tenca
My first attempt, but i do not know if it is a right answer: antif: func [:f [any-function!] args[block!]][do head insert copy args :f] --- Ciao Romano - Original Message - From: Ladislav Mecir [EMAIL PROTECTED] To: Rebol List [EMAIL PROTECTED] Sent: Monday, February 23, 2004 8:55

[REBOL] Re: Can I define an anti function?

2004-02-23 Thread Romano Paolo Tenca
Obviously I forgot the not. But perhaps i mis-interpreted the syntax required but the antif function. If it is tha case, can you do some examples ot the required syntax? --- Ciao Romano - Original Message - From: Romano Paolo Tenca [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday

[REBOL] Re: No-wait

2004-02-22 Thread Romano Paolo Tenca
listen port are always wait (afaik) you should use the awake port field for async code --- Ciao Romano - Original Message - From: Paul Tretter [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, February 22, 2004 8:49 PM Subject: [REBOL] No-wait What is the purpose of no-wait.

[REBOL] Re: 'upgrade' not working correctly.

2004-02-21 Thread Romano Paolo Tenca
Hi, I installed rebol/view the other day, then replaced the rebol.exe file with the beta version I downloaded. It doesn't seem to be working correctly. For one thing, here's what happens when I double-click the Rebol icon on my Windows XP home machine, then type in 'upgrade': Upgrade works

[REBOL] Re: Async API (was: Async call:// protocol v1.0)

2004-02-19 Thread Romano Paolo Tenca
Hi Doc, I understand your point and i agree. I think that could be followed a path like the View one. i am thinking to the feel object, with recurring standard name until is possibile: My first attempt make me think to (arguments here are only example): port/locals/feel: make object! [

[REBOL] Re: rebol's code evaluation... [was: MySQL protocol bug]

2004-02-19 Thread Romano Paolo Tenca
Hi, all The way I see it is that any value which does not evaluate into an action simply returns a clean version if itself. It is possible that some values get reduced or corrected as part of their evaluation, but I do not know how to call this behavior. example: 2001-3-4 == 4-Mar-2001

[REBOL] Re: Async call:// protocol v1.0

2004-02-18 Thread Romano Paolo Tenca
I should like to know people opinions about async interface for user callback functions. Until now we have 2 different strategies: 1) async:// which uses port/awake with an argument to switch among states 2) call:// which uses port/locals/custom-name1: func [][] port/locals/custom-name2:

[REBOL] Re: Is Rebol OO?

2004-01-12 Thread Romano Paolo Tenca
Hi, Sorry if this is a stupid question, but is REBOL Object Oriented? Yes, like Self: http://research.sun.com/self/language.html --- Ciao Romano -- To unsubscribe from this list, just send an email to [EMAIL PROTECTED] with unsubscribe as the subject.

[REBOL] Re: extending IE with Rebol was RE: Re: Easy-Vid

2004-01-06 Thread Romano Paolo Tenca
Hi, That is not imo needed. AFAIK even RT is interested in browser plug-in resurrection. RT should do the source code for plugin open source or better public domain, so people can improve/change/adapt it. Of course I have not studied consequences of the plug-in problem MS was sued

[REBOL] Re: accessing objects dynamic paths

2004-01-04 Thread Romano Paolo Tenca
Hi, tstring: password/jj == password/jj tstring: to-path tstring == password/jj There are many issues about this expression. 1) p: to-path a/b creates a path composed of a single item which is itself th path a/b. You can verify this with this: length? :p first :p type?

[REBOL] Re: DyBASE test

2003-12-24 Thread Romano Paolo Tenca
is that there is no difference between code and data in Rebol. And that can be detected only at run time. An help for the programmer could be a /debug mode for the interpreter which outputs a list of warning during execution, but we have only the trace mode just now. --- Ciao Romano Paolo Tenca -- To unsubscribe

[REBOL] Re: Profiling Rebol API to DyBASE

2003-12-19 Thread Romano Paolo Tenca
125000 0:00:05.33 15 0:00:06.98 175000 0:00:09.06 20 0:00:09.83 --- Ciao Romano - Original Message - From: Romano Paolo Tenca [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, December 19, 2003 4:49 AM Subject: [REBOL] Re: Profiling Rebol API to DyBASE Hi, I was able

[REBOL] Re: Profiling Rebol API to DyBASE

2003-12-18 Thread Romano Paolo Tenca
Hi, I was able to isolate the problem. The following script shows almost the same time as testindex.r searching for 20 objects. n: 20 h: make hash! n start: now/time/precise repeat i n [ oid: random n obj: select h oid if none? obj [ obj: make object!

[REBOL] Re: collect-in

2003-12-13 Thread Romano Paolo Tenca
Hi Ladislav, The advantages: is trasparent for break works with empty block inside the body you know where values are stored is not slow Does this behave well w.r.t. Return? Should be trasparent for return. Also the value returned by the loop is the same. The body block is

[REBOL] Re: read directory

2003-12-13 Thread Romano Paolo Tenca
Hi Ladislav, I don't like that. As far as I know, no operating system allows that. Am I wrong? I do not know it and i did not know it. This should make your proposal more accettable, also if is left to the OS. Sometimes FTP is used as an interface for database which are not true file system.

[REBOL] Re: read directory

2003-12-12 Thread Romano Paolo Tenca
Hi Ladislav, well, it is annoying for me, because the %/c/rebol specification uniquely determines the target of my operation. Linux Rebol/Core behaves differently, but the behaviour looks unacceptable too. Do you like this? make-dir %rebol/ write %rebol test read %rebol ;==aaa delete

[REBOL] collect-in

2003-12-11 Thread Romano Paolo Tenca
This is my idea of collect: collect-in: func [ {Append block evaluations to a series, use as body in For, Repeat, etc.} dest [block! hash! list! any-string!] Series to append results block [block!] Block to evaluate. /only Inserts into dest using the Only refinement. /local main ][

[REBOL] Re: collect-in

2003-12-11 Thread Romano Paolo Tenca
A curiosity, i have compressed rebol.exe with http://upx.sourceforge.net/ i becomes 320 kb and seems to works How small can become Core? --- Ciao Romano -- To unsubscribe from this list, just send an email to [EMAIL PROTECTED] with unsubscribe as the subject.

[REBOL] Re: read directory

2003-12-11 Thread Romano Paolo Tenca
Hi Gregg, dir? %/c/rebol == true Seems inconsistent with it, but I haven't spent any thought on what's This comes from: info? %/c/rebol info? ftp://host/rebol that returns an object with the type (link/dir/file) dir? is a front-end for info? What i want to say is that if Windows is =

[REBOL] Re: rebol script crashes when opened directly but not when done from shell?

2003-12-09 Thread Romano Paolo Tenca
Hi bryan, button send[ insert telnet copy f1/text port: wait [telnet/sub-port system/ports/input] either port = telnet/sub-port [ if none? str: copy telnet [break] append f2/text str ][] ] You cannot call wait from event code (like the action of a button). Instead you must insert

[REBOL] Re: mold bug

2003-12-07 Thread Romano Paolo Tenca
Hi Anton, also mold fails, so i think that it is an unsupported feature: do mold context[a: self] ** Script Error: ... has no value ** Near: ... (thanks for your message about edit-text-undo.r) --- Ciao Romano -- To unsubscribe from this list, just send an email to [EMAIL PROTECTED] with

[REBOL] edit-text-undo.r

2003-12-05 Thread Romano Paolo Tenca
New version of edit-text-undo.r The 1.0.2 version correct another bug in RT code: unprintable key and hide field. (See the script header for more info) Always here: http://www.rebol.it/%7Eromano/ --- Ciao Romano -- To unsubscribe from this list, just send an email to [EMAIL PROTECTED] with

[REBOL] Re: Compressing image data (bugs?)

2003-12-04 Thread Romano Paolo Tenca
Hi, Henrik given a Rebol image, a solution: do decompress compress mold help.gif Instead a more secure: load decompress compress mold/all help.gif fails for a load bug (Feedback Id #31r704220): load mold/all help.gif ** Syntax Error: Invalid construct -- #[ ** Near: (line 522)

[REBOL] Re: [bug?] Problem with 'load

2003-12-04 Thread Romano Paolo Tenca
Hi Sunanda, troublesome-script: { , REBOL [needs: [9.9.9 xxx]] } script? troublesome-script ;; finds a valid header : correct! load-header troublesome-script ;; Romano's script -- finds a valid header: correct! load troublesome-script ;; fails due to the 'need **

[REBOL] FTP

2003-12-02 Thread Romano Paolo Tenca
The last beta release has reached a good point. All known bug fixed (among them low connections number) I should like to extend the base of testers before the final release. If someone want to test it, he can send an email to my address. People with ftp connections to MS servers, exotic FTP

[REBOL] Re: [bug?] Problem with 'load

2003-11-28 Thread Romano Paolo Tenca
Hi Brett, blah blah [ REBOL [Title: Sample] print now] blah blahblah blah blah blah Strangely enough, the Script? function that Yos pointed out seems to give a useful result in this case - the beginning of the embedded script, but not when the script is not embedded. Odd.

[REBOL] Re: COLLECTing results

2003-11-27 Thread Romano Paolo Tenca
Hi, all this works also with foreach (not only with loop and repeat): use [insert-only break-return res] [ insert-only: func [series value] [insert/only series value] break-return: func [value] [break/return value] res: func [value] [func [] reduce [value]] collectB: func [ {Collects

[REBOL] Re: Send/attach

2003-11-27 Thread Romano Paolo Tenca
Hi, View for AIX seems to be at 1.2.1.17. I do not use View on AIX because I want to run REBOL from a shell script. Running Core from a shell script works, but if I try to run View from a shell script it tries to start an X-server, which I don't want. So I have just Core (2.3) on AIX.

[REBOL] Re: Send/attach

2003-11-26 Thread Romano Paolo Tenca
Hi, Well, that would help a bit if someone has that version. I am a bit confused about what is available. The REBOL download page shows 1.2.1.3.1 as the Windows version of VIEW. On the page linked as recent beta version found here the Windows version is called view1210031.exe.

[REBOL] Re: Send/attach

2003-11-26 Thread Romano Paolo Tenca
Hi Steven, A few items: 1. My cutting and pasting operation broke a couple long lines into two lines, and caused some syntax errors. I was able to fix that. 2. In your note I believe you meant source send instead of source send-mail. I got by that also. yes, it was to give you an

[REBOL] Re: Send/attach

2003-11-26 Thread Romano Paolo Tenca
Hi, We need to be able to do something like: print difference version 1.2.1 version 1.2.10 Where version is some near little function that accesses the help for that version. In the meanwhile you can try: http://www.rebol.it/%7Eromano/#sect4.1. --- Ciao Romano -- To unsubscribe

[REBOL] Re: COLLECTing results

2003-11-26 Thread Romano Paolo Tenca
Hi all, two more cents to let Break work as usual: :-) use [insert-only break-return] [ insert-only: func [series value] [insert/only series value] break-return: func [value] [break/return value] collectB: func [ {Collects block evaluations, use as body in For, Repeat, etc.} block

[REBOL] Re: what a subject ;-)

2003-11-22 Thread Romano Paolo Tenca
Hi all, Well said. I think a single tag could be used, but once we get to three or four of them, I lose the actual subject (literally; visually; the column in the mailer list isn't wide enough to display it). I suggest to put them at the end of subject, not at the start. My screen is small:

[REBOL] Re: [ports] [tcp] Detecting peer closing connection

2003-11-21 Thread Romano Paolo Tenca
Hi Gabriele, that seems to work in every case. (Note: won't work if you have ASYNC-MODES set to 'WRITE, since then the AWAKE would be called even if no data is in the receive buffer.) Yesss, async-modes WRITE uses a forever loop which calls awake forever (use only when needed). (BTW,

[REBOL] Re: [ports] [tcp] Detecting peer closing connection

2003-11-21 Thread Romano Paolo Tenca
Hi Maarten, I think this may have to do with the port being in async mode? Or did you test it in sync mode as well? It is the same. But in async mode, copy should not be used, you must use read-io, and read-io in this case returns 0 instead of 0. --- Ciao Romano -- To unsubscribe from

[REBOL] Re: Rebol for real world applications

2003-11-19 Thread Romano Paolo Tenca
Hi Sabu, Memory is auto-recycled. You can force recycling with the recycle function. You can test the memory allocated by your program with system/stats You can have an idea of memory used by some code with these routines: http://www.rebol.org/cgi-bin/cgiwrap/rebol/search.r?find=mem2 cfg:

[REBOL] Re: [FTP] patch

2003-11-19 Thread Romano Paolo Tenca
Beta version 2 for download: do load-thru http://www.rebol.it/%7Eromano/ftp-patch.r 0.0.2 BETA version 19/11/03 New Features - Experimental query which does not throw an error if file not found The behaviour now should be the the same of a file-system port. - chdir-check now

[REBOL] Re: ftp scheme (cont.)

2003-11-17 Thread Romano Paolo Tenca
Hi Brett, It would be great if Ashley and Carl could run this new test against their servers. This one is in source code form rather than a patch. You come to my side about patches :-) I did not want to rewrite by scratch the whole ftp protocol, only to reorganize the code to do better and

[REBOL] Re: FTP scheme was Re: Reading empty directories via FTP error

2003-11-17 Thread Romano Paolo Tenca
Hi Brett, My take out from that is that any specific server-FTP or user-FTP will support NLST and LIST except when it does not. (-: :-) Perhaps an example of this might be where directory permissions are such that a user is allowed to read a file they target exactly, but not allowed to

[REBOL] Re: FTP scheme was Re: Reading empty directories via FTP error

2003-11-16 Thread Romano Paolo Tenca
Hi, Also because NLST is not always implemented, if LIST is implemented. And this happens also if the http://www.wu-ftpd.org/rfc/rfc1123.html says (1989) that NLIST MUST be implemented. I was wrong, I have no evidence that NLST is not handled by some ftp servers. I have thought to some

[REBOL] Re: Reading empty directories via FTP error

2003-11-16 Thread Romano Paolo Tenca
Hi Max, but then, how do all ftp softwares fix this. The error i know in parsing files with LIST can be fixed with a slight change in the parse rules of the ftp handler. I think that commercial products make fine tuning of the rules they use to parse list output. It is only the task to try

[REBOL] Re: FTP scheme was Re: Reading empty directories via FTP error

2003-11-15 Thread Romano Paolo Tenca
Hi all, CR Net-log: [LIST results: { CR drwxrwsr-x 2 212 217 1024 Jan 25 2002 -dir- CR drwxrwsr-x 4 212 217 1024 Jan 25 2002 -dir- CR drwxrwsr-x 2 212 217 1024 Jan 25 2002 -dir- CR drwxrwsr-x 2 212 217 1024 Jan 25 2002

[REBOL] Re: Reading empty directories via FTP error

2003-11-15 Thread Romano Paolo Tenca
Ashley, Brett, Carl and all there are many problems in FTP code. Almost every routine has something wrong. I do not think that patching can reach a valid result. So I'm rewriting the protocol trying to put a little of order in the caos :-). I should like to test my beta code on other

[REBOL] Re: Reading empty directories via FTP error

2003-11-14 Thread Romano Paolo Tenca
Hi Brett, As I understand it, Catch does not trap errors at all, yet the FTP protocol code has error? catch in multiple places through the code. As users we can wrap our FTP stuff in a Try or Attempt to protect ourselves, but still the FTP code may fall apart unreasonably early.

[REBOL] Re: Reading empty directories via FTP error

2003-11-14 Thread Romano Paolo Tenca
Correction: I have another point: why it tests only the 5, NLIST is like LIST, LIST waits a 2 class answer, the same should be for NLIST. class 1 Now i'll check the rfc for this. --- Ciao Romano -- To unsubscribe from this list, just send an email to [EMAIL PROTECTED] with unsubscribe as

[REBOL] Re: json

2003-11-14 Thread Romano Paolo Tenca
Hi Anton, That's pretty nice, but, as I was going to ask Gabriele, how do you handle unicode strings? I forgot to say: Unicode is left to the user as an exercise :-) I wrote the code to see how bnf is near to the parse grammar. I must say that has been very easy to convert the bnf

[REBOL] Re: FTP scheme was Re: Reading empty directories via FTP error

2003-11-14 Thread Romano Paolo Tenca
Where is your ftp stuff? --- Ciao Romano -- To unsubscribe from this list, just send an email to [EMAIL PROTECTED] with unsubscribe as the subject.

[REBOL] Re: Reading empty directories via FTP error

2003-11-13 Thread Romano Paolo Tenca
Hi, One of many problems of the ftp handler is that it does create directory outside the root: when you do make-dir ftp://www.bbb.ccc/main/sub is created the dir: sub/ and not the dir: main/sub/ One patch can be this: mkdir-check: [ [MKD head system/words/remove

[REBOL] Re: Reading empty directories via FTP error

2003-11-13 Thread Romano Paolo Tenca
Hi, another problem of the ftp handler is error handling (see http://www.rebol.net/list/list-msgs/32024.html) one patch i tested a little is this: old: repeat x length? connections [ conn: system/words/pick connections x if all [conn conn/host = temp conn/user = port/user

[REBOL] Re: Reading empty directories via FTP error

2003-11-13 Thread Romano Paolo Tenca
Hi, i forgot to say that this patch: patched: repeat x length? connections [ conn: system/words/pick connections x if all [ conn conn/host = temp conn/user = port/user ;romano not error? catch [throw-on-error [get-cur-dir

[REBOL] Re: Reading empty directories via FTP error

2003-11-13 Thread Romano Paolo Tenca
Hi Brett, I tried briefly to replicate the problem but couldn't - I got a different error! What error? My error manifests itself only under some conditions (i am not able to say exactly what conditions). I think that they depend from cached ftp port, but i am not sure. With a freshly opened

[REBOL] Re: json

2003-11-13 Thread Romano Paolo Tenca
Hi all this is my attempt to do a coffee break json to rebol converter: http://www.rebol.org/cgi-bin/cgiwrap/rebol/view-script.r?script=json.r is under gpl, additions, corrections, bugs are welcome --- Ciao Romano -- To unsubscribe from this list, just send an email to [EMAIL PROTECTED]

[REBOL] Re: Reading empty directories via FTP error

2003-11-13 Thread Romano Paolo Tenca
Hi Brett, another problem of the ftp handler is error handling (see http://www.rebol.net/list/list-msgs/32024.html) I see your point about the error handling code in the FTP protocol - it does not look robust to me. In the connections case is robust. In the other cases, tests must be

[REBOL] Re: Segmentation fault

2003-11-07 Thread Romano Paolo Tenca
Hi Arnoux Thanks for your reply, but it doesn't solve the problem. Actually: 1) When I try to run it on an older computer, it crashes quicker. 2) In a previous version, I had only one loop doing the work and it was working OK. Thanks for your reply, but it doesn't solve the problem. Your

[REBOL] Re: Segmentation fault

2003-11-07 Thread Romano Paolo Tenca
Hi Vincent, to simulate the file should be better: summary_file: copy [] repeat n 14000 [ insert tail summary_file join a mystring c n ] now the string are not the same --- Ciao Romano -- To unsubscribe from this list, just send an email to [EMAIL PROTECTED] with unsubscribe as

[REBOL] Re: Segmentation fault

2003-11-07 Thread Romano Paolo Tenca
Hi Vincent, Good to know. The problem should be in the ftp code. But you must use copy/deep if you think to re use the code. 2 additional notes: insert tail is a lot more fast than append. pick tmp 3 is a little more fast than tmp/3 --- Ciao Romano -- To unsubscribe from this

[REBOL] Re: serious proposition...WAS: RE: Standards

2003-11-07 Thread Romano Paolo Tenca
Hi All, I am happy for all the replies (was expecting even more ;-) I think that only RT can set a standard for this kind of things. Modules, libraries are an important aspect of a language, not external tools. Knowing Carl Sassenrath work on Amiga and his deep modular code, i think that Carl

[REBOL] Re: Unwanted Duplicate Data in Text Fields

2003-11-07 Thread Romano Paolo Tenca
But why is the text that is entered into one text field automatically propagated to all of the other empty fields in every record without explicitly specifying it, i.e., after entering the text, I never insert the value in the 3rd text field into db/1/3 and certainly not into db/1/4, db/2/3,

  1   2   3   4   5   >