[REBOL] Re: Words, Bindings and Contexts. (7)

2000-07-26 Thread giesse
Hello [EMAIL PROTECTED]! On 25-Lug-00, you wrote: l I see, that the fact, that my series didn't explain the l behaviour of functions WRT Recursion and Binding is a flaw. l Here is the continuation (a model of the behaviour): [...] I just want to say that I agree with this model. This is the

[REBOL] Re: Bug in 'use? Re:(11)

2000-07-26 Thread giesse
Hello [EMAIL PROTECTED]! On 26-Lug-00, you wrote: r I've set up a mailing list on my Web server for the book (for r bug fixes and clarifications and ongoing discussions). Good. I think I'll subscribe eventually. :-) Anyway, I'm quite sure it'll be very difficult to find bugs in your book.

[REBOL] Re: Bug in 'use? Re:(9)

2000-07-25 Thread giesse
Hello [EMAIL PROTECTED]! On 25-Lug-00, you wrote: c That looks like a bug. -Carl Hmm... do you have some little spare time to tell us how contexts work? Isn't binding done word-by-word? Isn't hierarchy achieved by multiple pass binding? You're confusing me, now. :-) Regards, Gabriele.

[REBOL] Re: Bug in 'use? Re:(9)

2000-07-24 Thread giesse
Hello [EMAIL PROTECTED]! On 23-Lug-00, you wrote: r good to hear from you. I'm glad to talk with you too; I hope to get your book soon, too, so I'll be able to send you some bug report. ;^) r This was REBOL 1.x behaviour. REBOL 2.x is very different in r this regard; the word lookup is NOT

[REBOL] Re: Words, Bindings and Contexts. (5) Re:

2000-07-24 Thread giesse
Hey, I did get only Jeff's message from this thread! Could someone at RT check if they get errors from my account? (Don't need to send me the thread, I'll have a look at it in the archive. In the meantime, I'm sorry if someone asked something to me and I did not answer yet.) Regards,

[REBOL] REBOL SCOPING / CONTEXT EXPLANATIONS Re:

2000-07-20 Thread giesse
[EMAIL PROTECTED] wrote: REBOL [] my-words: [ 'rebol "Blue" ( 7 * 2 ) ] loop 2 [ foreach word my-words [ print word] foreach word my-words [ probe word ]] When the script is loaded, the ascii text is converted to a block of REBOL values. The first value of the block here is the set-word

[REBOL] REBOL's scoping rules Re:

2000-07-19 Thread giesse
[EMAIL PROTECTED] wrote: Why does REBOL have variables be globally scoped by default? I ran into this Because REBOL does not have something like a "scope". Notice that there are no variables at all, only values. Some of these values, called "words", have the ability to refer to other values.

[REBOL] REBOL's scoping rules Re:(2)

2000-07-19 Thread giesse
[EMAIL PROTECTED] wrote: In REBOL you don't only have two scopes (contexts) - you have a tree of contexts, each one with a parent context, the top level context being what you could call global variables. This is probably not true; each context is independent from the others. As you can

[REBOL] Re: 'wait bug in rebol 2.3.0.1.1 ?

2000-07-14 Thread giesse
Hello [EMAIL PROTECTED]! On 14-Lug-00, you wrote: r 11.WB3.1: rebol.core -qs r REBOL/Core 2.3.0.1.1 22-Jun-2000 r Copyright 2000 REBOL Technologies. All rights reserved. r ## port: open tcp://:8000 r ## wait port r And this in another: r 8.WB3.1: telnet localhost 8000 r

[REBOL] bug ? Re:(3)

2000-07-12 Thread giesse
[EMAIL PROTECTED] wrote: What I'm saying is that it is not consistent with the philosophy in Rebol. Datasets are not a datatype, it is a human convention. Take note of the help message : arg must be a series. Files are read as series. But yet difference won't work on them. It does:

[REBOL] Re: Find speed Re:(3)

2000-07-08 Thread giesse
Hello [EMAIL PROTECTED]! On 08-Lug-00, you wrote: b Associative structures are best accessed with select, not b find. The hash! type optimizes select, but is no faster b than a block with find, as far as I can tell. select ["a" "b" "b" "won't work" "c" "at all"] "a" == "b" select ["a" "b"

[REBOL] Linked list in rebol/RebDB Re:(3)

2000-07-05 Thread giesse
[EMAIL PROTECTED] wrote: My first step is to step through the "C" code in the DB Kernel, "clone" the code and the data structures in rebol. Make it work, and THEN optimize with rebol's own features. This way you'll get very ugly REBOL code, and you may have trouble converting most data

[REBOL] Objects, Making-Of Re:(9)

2000-07-05 Thread giesse
[EMAIL PROTECTED] wrote: REBOL/Core 2.3.0.3.1 f: func [x [any-type!]] [probe get/any 'x] g: func third :f second :f probe :g func [x [datatype!]][probe get/any 'x] So, RT, SHOULDN'T that be fixed? ;-) Regards, Gabriele. -- Gabriele Santilli [EMAIL PROTECTED] - Amigan - REBOL

[REBOL] Re: Objects, Making-Of Re:(2)

2000-07-04 Thread giesse
Hello [EMAIL PROTECTED]! On 03-Lug-00, you wrote: C But now the context thing comes in for real, ;-) Yup. :-) C a: 0 f: func [] [a] The 'A in the body block of the function F is bound to the global context. C o1: make object! [a: 1 g: func [] [a]] o1/g G is a new function; the 'A in his

[REBOL] Re: Linked list in rebol

2000-07-04 Thread giesse
Hello [EMAIL PROTECTED]! On 03-Lug-00, you wrote: t I'd like to implement a *triple* linked list in rebol. t Below is a "c" structure: I'd welcome advice on how I think that how to create the REBOL data structure depends on what you want to do, not on how you'd do it in C. :-) Regards,

[REBOL] Re: RFF: copy/pick

2000-07-04 Thread giesse
Hello [EMAIL PROTECTED]! On 04-Lug-00, you wrote: r copy/range series start end What's wrong with COPY/PART AT SERIES START END - START ? Regards, Gabriele. -- Gabriele Santilli [EMAIL PROTECTED] - Amigan - REBOL programmer Amiga Group Italia sez. L'Aquila --

[REBOL] Re: Objects, Making-Of

2000-07-03 Thread giesse
Hello [EMAIL PROTECTED]! On 03-Lug-00, you wrote: [...] C I'm guessing that the error occurs because of wrong contexts C of the words in the spec block. Am I right? And what am I C doing wrong here? No, contexts have nothing to do with that. :) It's just that you're inserting a FUNCTION!

[REBOL] Re: A data inconsistency Re:(10)

2000-07-02 Thread giesse
Hello [EMAIL PROTECTED]! On 01-Lug-00, you wrote: a I disagree with your last statement (at bottom), Gabriele. a Recently, I wanted to assign 'err in a program like this (it a doesn't work): a a: func [][ aif error? err: try [ a; a;code that may produce an error

[REBOL] Re: Random chaos Re:

2000-06-30 Thread giesse
Hello [EMAIL PROTECTED]! On 29-Giu-00, you wrote: h Since you are using the Amiga version: connected? there h currently only works with Miami and Miami Deluxe in recent :-) But shouldn't it return FALSE if there's no stack running? Regards, Gabriele. -- Gabriele Santilli [EMAIL

[REBOL] Re: child object initialization Re:

2000-06-27 Thread giesse
Hello [EMAIL PROTECTED]! On 27-Giu-00, you wrote: A You're doing it correctly. There's a problem with Rebol here, A I believe. Well, it's just that subobjects are not cloned. I think this saves a lot of memory in /View, for example. The workaround is to clone the subobject manually: c:

[REBOL] Re: A data inconsistency Re:(12)

2000-06-27 Thread giesse
Hello [EMAIL PROTECTED]! On 26-Giu-00, you wrote: [my proposal about contexts flexibility] i This would really be great. Just a correction: after thinking about it, I came to the conclusion that words cannot be removed from contexts with the current implementation. This is based on

[REBOL] Re: Retrieving OS During RunTime?

2000-06-26 Thread giesse
Hello [EMAIL PROTECTED]! On 26-Giu-00, you wrote: r Anyway, I did a minimal search with Bo's cool system r browser but couldn't find where the OS was kept. system/version The last two numbers in the tuple represent the platform (3.1 for Windows, 4.2 for Linux x86 libc6 IIRC). The platforms

[REBOL] Re: A data inconsistency Re:(10)

2000-06-23 Thread giesse
Hello [EMAIL PROTECTED]! On 22-Giu-00, you wrote: l *Unset* [...] l The problem is, that the difference l between words initialized to None, Unset or any other legal l value is small. You see some difference just because you see, l that Unset is a "second class" Rebol value as opposed to

[REBOL] A data inconsistency Re:(9)

2000-06-22 Thread giesse
[EMAIL PROTECTED] wrote: And what happens when I write: values: second system/words What value should I find there for unset words? This really is a tough question. Yup. :-) Solution #1: [...] Might be an idea; not totally convincent tough... Solution #2: If you prefer the

[REBOL] A data inconsistency Re:(4)

2000-06-21 Thread giesse
[EMAIL PROTECTED] wrote: well, compose seems to turn () in a block into literally nothing, not unset!, In one of the previous versions (2.1?) COMPOSE did place unset! in the block if it was returned by the code; then it was changed to the current behaviour so that it is possible to insert

[REBOL] A data inconsistency Re:(5)

2000-06-21 Thread giesse
[EMAIL PROTECTED] wrote: So, in the case of Unset less could mean more - less legal datatypes could mean more protection and simplicity for programs. But then, what should "code that returns nothing" return? What value should "undefined" words have? I think REBOL as is now really needs

[REBOL] open/direct not working right? Re:

2000-06-21 Thread giesse
[EMAIL PROTECTED] wrote: If it does, it always starts from the beginning as if the "tail o" part were ignored. Is this just how /direct works? To get to the tail of a /direct port, you may try using: o: skip o o/size (I remember having used it once, but it was a lot of time ago... :-)

[REBOL] Andrew, you beast! - GC too tidy? Re:(9)

2000-06-21 Thread giesse
[EMAIL PROTECTED] wrote: I've been informed by Bo, that the GC bug is one of the top ten bugs to fix in Rebol. Hmm... I reported it sometime in August 1999, so it's taking time to fix it. ;-) Seriously, I'm sure there's some reason for it not being fixed yet; perhaps they'd need a rewrite of

[REBOL] teeny-bits-of-time/2 Re:(4)

2000-06-21 Thread giesse
[EMAIL PROTECTED] wrote: Maybe Rebol has no way of "compiling" a statement and interprets it each time? Exactly, AFAIK. Note that just comparing a C example of incrementing an integer a million times vs the Rebol equivalent shows that Rebol is about 4 times slower with this task - again,

[REBOL] A try inconsistency? Re:

2000-06-21 Thread giesse
[EMAIL PROTECTED] wrote: did you notice: error? try [1 / 0] == true error? try [throw 1] ** Throw Error: No catch for throw: 1. ** Where: throw 1 I don't know if this is really an inconsistency; the error actually happens OUT of the try block, because throw "breaks" out of the code

[REBOL] A data inconsistency Re:(7)

2000-06-21 Thread giesse
[EMAIL PROTECTED] wrote: 1) what should "code that returns nothing" return? There is an approach that is even nowadays present in Rebol (only residually, I admit). "Code that returns nothing" can return None. I expected this answer, but I'm not completely convinced about it. I'll have to

[REBOL] Re: Andrew, you beast! - GC too tidy? Re:(6)

2000-06-19 Thread giesse
Hello [EMAIL PROTECTED]! On 18-Giu-00, you wrote: b As for unified, formal approaches, well Scheme wins there. b REBOL is easily as unified as Scheme, but Scheme has been b formalized to death - no contest. Hey Gabriele, do you want to b help turn our context argument into a formal paper,

[REBOL] Re: pseudo-globals? Re:(2)

2000-06-17 Thread giesse
Hello [EMAIL PROTECTED]! On 16-Giu-00, you wrote: G p.s. Is there any way to do the same thing, even if G "result" were a local var and not global? You can set r/result to whatever; but perhaps you are interested in something like the following? r-spec: [ x: func [] [system/words/x

[REBOL] Re: pseudo-globals?

2000-06-16 Thread giesse
Hello [EMAIL PROTECTED]! On 15-Giu-00, you wrote: G I thought already about creating an object which has a layer G like this: G r: make object! [ G parm1: result G xx: x parm1 G yy: y parm1 G zz: z parm 1 G aappend: func[ str] [append parm1 str] G ] G and then going like this G r

[REBOL] Re: Andrew, you beast! - GC too tidy? Re:(2)

2000-06-16 Thread giesse
Hello [EMAIL PROTECTED]! On 16-Giu-00, you wrote: j Just a thought most of the "philosophical" questions / j discussions here about i.e. object lifecycle, scope, bindings, j etc. would be simply, formally, and workably solved if Rebol j had a true lexical scoping model. As it is, it's

[REBOL] Re: New VID scroller styles... Re:

2000-06-14 Thread giesse
Hello [EMAIL PROTECTED]! On 13-Giu-00, you wrote: P Hey, Gabriele, cool. Use 'across at the beginnig of your P examples please, as all that variants of scrollers don't fit P 800x600 resolution. Well, those "..." where there for some reason. :-) P Gabriele, would it be possible to get

[REBOL] Pekr scroller...

2000-06-14 Thread giesse
REBOL [] ; this isn't tested, so take it as an example only. :-) ; you can download the new version here do http://web.tiscalinet.it/rebol/scroller-styles.r view layout [ styles scrollers style pekr-scroller scroller options [no drag events] across s1: scroller 200x17

[REBOL] New VID scroller styles...

2000-06-13 Thread giesse
Hi! I just finished two new styles for VID. The first one is a scroller, which is a generalization of the "slider" style found in VID. The second one is a replacement for VID's slider. The SLIDER style is almost backward compatible with VID's slider; only a minor change to your layouts should

[REBOL] Re: By any other name (CGI, HTTP)

2000-06-13 Thread giesse
Hello [EMAIL PROTECTED]! On 13-Giu-00, you wrote: a The question: is there a way for an Apache-handled CGI script a named john-doe.r, and referenced to as such in a web form, to a output a web page named john-doe.html (or even a john-smith.html)? The only way is redirection AFAIK.

[REBOL] Re: User defined events in /view ?

2000-06-11 Thread giesse
Hello [EMAIL PROTECTED]! On 11-Giu-00, you wrote: b Now, the window does not show until the network read is done. b Because the network read is slow, the window does not appear b straight away. In fact the Rebol icon does not appear on the b task bar (Windows NT 4) until the window is

[REBOL] Re: weird behavior of /view

2000-06-10 Thread giesse
Hello [EMAIL PROTECTED]! On 09-Giu-00, you wrote: G If I make a little test.r file that looks like this: Rebol [ ] G print "test!" G and then run it from the command line like this: rebol test.r G I get a barely-perceptible flash like the window opened and G shut real quick and then

[REBOL] Re: Dangerous (use of) Secure Re:(2)

2000-06-10 Thread giesse
Hello [EMAIL PROTECTED]! On 09-Giu-00, you wrote: w Using the new ability to QUERY objects, you can do the w following: Is this documented somewhere? There's no hint to this in the help for QUERY. Anyway, this is VERY interesting. Regards, Gabriele. -- Gabriele Santilli [EMAIL

[REBOL] set in object 'variable string Re:(2)

2000-06-08 Thread giesse
[EMAIL PROTECTED] wrote: The following syntax doesn't work at all... set in object 'word value This works if the word is found the context of the object. Please notice that REBOL's contexts are not extensible; only the global context can be extended with new words. HTH, Gabriele. --

[REBOL] crlf and newline (was parsing by period and newline) Re:(2)

2000-06-06 Thread giesse
[EMAIL PROTECTED] wrote: 1. Is "crlf" a replacement for "newline newline" ? No, it is not. REBOL's newline is just LF. 2. Is "crlf" a Windows convention vs. *nix? Sort of. CRLF is used in most Internet protocol too as line terminator. Mac just use CRs AFAIK, while all other platforms that I

[REBOL] Re: crlf and newline (was parsing by period and newline) Re:(3)

2000-06-06 Thread giesse
Hello [EMAIL PROTECTED]! On 06-Giu-00, you wrote: F Sounds good ... but HOW can I FORCE Rebol to write LF back F (even under Windozze ???) You just need to use the /BINARY refinement (e.g. WRITE/BINARY). This way the string will be written exactly as it is, without any system-dependent

[REBOL] Re: parsing by period and newline

2000-06-05 Thread giesse
Hello [EMAIL PROTECTED]! On 05-Giu-00, you wrote: n end-of-paragraph: rejoin [{.} newline] n ;does not work as I desire (i.e. parsing ONLY by instances of n a period followed by a newline character.) Using a charset When you use PARSE in that way, it splits the string at each occurrence of

[REBOL] Re: Stupid Question Re:

2000-06-04 Thread giesse
Hello [EMAIL PROTECTED]! On 04-Giu-00, you wrote: A to: load first file I think it's not a good idea to use the word 'to here. help to Constructs and returns a new value after conversion. Arguments: type -- The datatype or example value. (any-type) spec -- The attributes of the new

[REBOL] hidden variables in objects? Re:(17)

2000-05-31 Thread giesse
[EMAIL PROTECTED] wrote: 1. z was never defined: unset 'z value? 'z == false Yes, but as soon as it is loaded it is added in system/words. So there is no difference with the code below: 2. y is defined and then unset. y: none == none value? 'y == true unset 'y value? 'y ==

[REBOL] hidden variables in objects? Re:(12)

2000-05-29 Thread giesse
[EMAIL PROTECTED] wrote: The trick here is what does SELF evaluate to when you set 'x to it? SELF at that time is an object, containing the words C and D, but those words haven't yet been assigned anything at the time you assign the word X to SELF. An object begins its creation by first

[REBOL] Re: Self is mysterious

2000-05-28 Thread giesse
Hello [EMAIL PROTECTED]! On 27-Mag-00, you wrote: d x: make object! [a: 1 b: 2 self: 3] d == 3 d type? x d == integer! d Mystery abounds, Actually, obj: make object! [a: 1 b: 2] obj/self: 3 == 3 probe obj make object! [ a: 1 b: 2 ] I think it's just that MAKE OBJECT!

[REBOL] Re: hidden variables in objects? Re:(9)

2000-05-28 Thread giesse
Hello [EMAIL PROTECTED]! On 27-Mag-00, you wrote: w Now for some mysterious stuff: w x: make object! [self: make self [a: 1 b: 2] c: 3 d: 4] w What do you suppose is happening here? :-) It's a little w mystery. (-: Looking at the result of: obj: make object! [self: 3] == 3 I assume

[REBOL] Re: hidden variables in objects? Re:(7)

2000-05-27 Thread giesse
Hello [EMAIL PROTECTED]! On 26-Mag-00, you wrote: c True, REBOL is not OO, it is OB (object-based). However, I c think View proves that the object inheritance provided in c REBOL is quite powerful. VID (Visual Interface Dialect) kernel c is a good example. Yes, and I fully agree with you.

[REBOL] Re: Objects (and|or) context problem Re:

2000-05-27 Thread giesse
Hello [EMAIL PROTECTED]! On 27-Mag-00, you wrote: l you should have written: l main: copy [] l foreach [n v] second block [ l insert tail main compose [(to-set-word rejoin [first ^^^ This is a problem, too. Better: insert tail main

[REBOL] hidden variables in objects? Re:(6)

2000-05-26 Thread giesse
[EMAIL PROTECTED] wrote: But, there is another problem (besides the GC fault, that will be repaired for sure). You cannot use inheritance for the hidden wordss, which makes a big difference in OOP. Yup, but you know, REBOL's not an OO language. That is, you don't get real inheritance at all,

[REBOL] [REBOL]hidden variables in objects? Re:

2000-05-25 Thread giesse
[EMAIL PROTECTED] wrote: I need to verify something stated in this presentation: Can there be "hidden variables" in a rebol object. The language makes it possible, but a bug in the garbage collector makes it unreliable. Example: obj: make object [ ; "public" words a: ... b: ...

[REBOL] [REBOL]hidden variables in objects? Re:(3)

2000-05-25 Thread giesse
[EMAIL PROTECTED] wrote: set first second get in object 'hiddena "not protected" object/hiddena == "not protected" Any opinions? I could argue that knowing the object model of your C++ compiler you could simply use a pointer to the obejct to modify any (private) field. Regards,

[REBOL] load/next - bug?! (repost) Re:(4)

2000-05-16 Thread giesse
[EMAIL PROTECTED] wrote: what if i handle data this way? maybe guestbook, and someone says "Very funny! try this too! ^/REBOL[ ] ... " can the "nice notes" - database go down? If you use SAVE/HEADER instead of just SAVE you should have no problems. (REBOL should skip to the first header

[REBOL] load/next - bug?! Re:(5)

2000-05-16 Thread giesse
[EMAIL PROTECTED] wrote: I suggest inline-strings and blocks should be read-only, This might be an idea, but then you have more problems when you save and then load strings... No, I don't think this would be a good solution. [...] What's your reservation with load and save? I

[REBOL] load/next - bug?! Re:(3)

2000-05-15 Thread giesse
[EMAIL PROTECTED] wrote: Well, rebol talks about simple databases and "better xml". how can i use it if a occasianal "rebol" can crash the data? I think you are a bit exaggerating the problem here. Actually, you have a problem only if there is a line that starts with the word "REBOL" followed

[REBOL] Re: Multithreaded rebol commands? Re:(3)

2000-05-15 Thread giesse
Hello [EMAIL PROTECTED]! On 08-Mag-00, you wrote: Just noticed noone answered you here. m Is it possible to transfer an open port from one rebol scrip m to another? No, it is not. But it is possible for a REBOL script to act as a proxy for another REBOL script (or any other kind of

[REBOL] Web hosting...

2000-05-15 Thread giesse
Hi! I know this has been already discussed, but I don't have the messages archived here (or at least I can't find them...). Could someone tell me (perhaps in private email, if the list is not interested) how many (free) web hosting services are there that offer CGI and can be made to work with

[REBOL] list test...

2000-05-08 Thread giesse
Sorry, I had some problems posting, I'm just trying if it works now... Please ignore, Gabriele. -- Gabriele Santilli [EMAIL PROTECTED] - Amigan - REBOL programmer Amiga Group Italia sez. L'Aquila --- http://www.amyresource.it/AGI

[REBOL] Re: load/next - bug?! (repost)

2000-05-08 Thread giesse
Hello [EMAIL PROTECTED]! On 06-Mag-00, you wrote: a the "REBOL-header" is skipt even if it is somewhere in the a code, even in nested blocks?! a when at start of line! a this means i have to check for occasional REBOL everywhere in a my save - databases?! a Bug, yes? No, I think this is

[REBOL] Of objects, sorts, compares and locals Re:

2000-05-05 Thread giesse
[EMAIL PROTECTED] wrote: The series to sort is a block of 59 objects (for now), sorted with something like this (which also aborts): sort-method: func [a b /local c] [c: a/type b/type c] sort/compare database :sort-method Is this a bug or just me missing something totally obvious?

[REBOL] Re: Can now get two rebolscripts to message each others reliably Re:

2000-04-30 Thread giesse
Hello [EMAIL PROTECTED]! On 29-Apr-00, you wrote: j But now I noticed it does not work reliably j unfortunately. :( I managed to make it fail now, it was j sending a 16 character long string, namely j ["DE" 2 "AX" 25] j and it only got j ["DE" 2 "AX" 25 j (15 chars) with the first

[REBOL] Re: Can now get two rebolscripts to message each others reliably Re:(3)

2000-04-30 Thread giesse
Hello [EMAIL PROTECTED]! On 30-Apr-00, you wrote: [problem with READ-IO] j ok, I think I've figured it out... Great! Thank you. :-) j So trying to read-io a length that is a multiple of 16 (the j same problem happens when sending 32 bytes) causes read-io to j miss the last character. A

[REBOL] Re: receiving data of unknown sizes through a port

2000-04-29 Thread giesse
Hello [EMAIL PROTECTED]! On 29-Apr-00, you wrote: m I want to create a server that receives files (or any data) of m unknown sizes through a port. How do I know when the EOF is m reached or if the other end has closed the port? If the client closes the port, you can simply: *** server

[REBOL] For all those folks unsubsribing from the list Re:

2000-04-27 Thread giesse
[EMAIL PROTECTED] wrote: and click "send". Big hint: Use copy and paste, so the spelling remains correct. OK? Then you'll be unsubscribed from the list. We should probably add to SELMA the ability to accept "unsubsribe" and ask the user a confirmation... Regards, Gabriele.

[REBOL] Re: ex decoding

2000-04-24 Thread giesse
Hello [EMAIL PROTECTED]! On 24-Apr-00, you wrote: t I'm trying to set up a system for encoding t a string into a target string that represents t the hex values of the original string. s: enbase/base "A string" 16 == "4120737472696E67" to-string debase/base s 16 == "A string" Have a look

[REBOL] Re: online database manipulation Re:(2)

2000-04-22 Thread giesse
Hello [EMAIL PROTECTED]! On 21-Apr-00, you wrote: r Thanks, Gabriele, but I am searching each line for a specific r string. I hope I am correct in that converting it to hash r speeds up such searches. To see the beta searchable version of If I understand you correctly, you are doing

[REBOL] Re: online database manipulation

2000-04-21 Thread giesse
Hello [EMAIL PROTECTED]! On 21-Apr-00, you wrote: r a: read/lines %auto.db r a: to-hash a You don't need a hash if you're just using functions like PICK and not FIND, SELECT etc. This conversion could take some time if the db is very big... r b: [] r random/seed

[REBOL] Re: Parse Re:(5)

2000-04-17 Thread giesse
Hello [EMAIL PROTECTED]! On 17-Apr-00, you wrote: s use s parse/case Actually, we were talking about the comparison operators, such as , , = etc. Regards, Gabriele. -- Gabriele Santilli [EMAIL PROTECTED] - Amigan - REBOL programmer Amiga Group Italia sez. L'Aquila --

[REBOL] Re: Parse Re:(3)

2000-04-16 Thread giesse
Hello [EMAIL PROTECTED]! On 16-Apr-00, you wrote: AOf course, this is a more accurate test: Aall [#"A" = C C = #"Z"] Whoops... Well, sometimes it's better to stay quiet... A;-) :-) (BTW, if the comparison between chars is case insensitive, it should be enough to convert

[REBOL] Re: Parse Re:

2000-04-15 Thread giesse
Hello [EMAIL PROTECTED]! On 14-Apr-00, you wrote: A if any [ A C == #"A" A C == #"B" A C == #"C" A C == #"D" A C == #"E" A C == #"F" A C == #"G" A C == #"H" A C == #"I" A C == #"J" A C == #"K" A C == #"L" A C == #"M" A C == #"N" A C == #"O" A C

[REBOL] sendmail Re:(2)

2000-04-12 Thread giesse
[EMAIL PROTECTED] wrote: can also write procmail scripts. The company told me there was no way for them to authenticate SMTP, so they had to shut it down. This kind of thing is It seems a bit silly to me, since they could simply set sendmail to accept connections from localhost only.

[REBOL] fun with 'switch Re:

2000-04-12 Thread giesse
[EMAIL PROTECTED] wrote: retval: curr-func switch retval [none [print "val-none"] "abort" [print "val-abort"] Did you realize that the one above is a value of type word! and value "none", while your return value is a value of type none! ? You can solve this problem

[REBOL] Re: Return types Re:(5)

2000-04-08 Thread giesse
Hello [EMAIL PROTECTED]! On 05-Apr-00, you wrote: i Example usage: i f: rt-func [a /local return-type [string!] ] [return a] BTW, I'd suggest you all to give a look at the source of the new 'help (/View beta 3). You will find an interesting piece of code. Hint: look for r-type. Regards,

[REBOL] bug ? parse / space Re:(2)

2000-04-06 Thread giesse
[EMAIL PROTECTED] wrote: but i cannot change the input string to parse. so if it is a bug can we get a fix, and how to workaround it ? parse/all your-string [lib-name any #" " lib-type] HTH, Gabriele. -- Gabriele Santilli [EMAIL PROTECTED] - Amigan - REBOL programmer Amiga Group Italia

[REBOL] Dialecting Re:

2000-04-05 Thread giesse
[EMAIL PROTECTED] wrote: How is dialecting different from defining a new word in Forth? How does this make REBOL better than any language which allows you to define new words? You will appreciate the difference when REBOL/Core 2.3 will be released. You not only can redefine words, you can

[REBOL] Re: Newbie question #2 - Pattern making and using? Re:(9)

2000-04-02 Thread giesse
j JB j PS j *I'm replying off list because my temporary isp doesn't j forward my mail when I use my subscribed email account. Regards, Gabriele. -- o----) .-^-. (--o | Gabriele Santilli / /_/_\_\ \ Amiga Group Italia --- L'Aquila | | GIESSE on IRC \ \-\_/-/ / http://www.amyresource.it/AGI/ | o) `-v-' (--o

[REBOL] Re: stand output handle?

2000-04-01 Thread giesse
PRINT etc.; if you want the output to go both on the console and the file, you can use the ECHO function. Regards, Gabriele. -- o) .-^-. (--o | Gabriele Santilli / /_/_\_\ \ Amiga Group Italia --- L'Aquila | | GIESSE on IRC

[REBOL] Newbie questions Re:

2000-03-31 Thread giesse
[EMAIL PROTECTED] wrote: 1) I have to put the name/password in the script. I hate this. Is there any way to tell the script to stop and get the password from the console at the appropriate time? The manual says I can put them in variables -- that's not a help, of course. password:

[REBOL] Newbie question #2 - Pattern making and using? Re:(9)

2000-03-28 Thread giesse
[EMAIL PROTECTED] wrote: "if found cat AND dog then x: true" x: parse sentence [start: to "cat" :start to "dog" to end] The OR is more readable: x: parse sentence [[to "cat" | to "dog"] to end] HTH, Gabriele.

[REBOL] Re: tcp direct?

2000-03-24 Thread giesse
maxchars You get in CHARS the actual number of bytes read. If the buffer is not empty, READ-IO appends the data to it. Regards, Gabriele. -- o) .-^-. (--o | Gabriele Santilli / /_/_\_\ \ Amiga Group Italia --- L'Aquila | | GIESSE on IRC

[REBOL] Re: Error Message Re:(5)

2000-03-24 Thread giesse
| | GIESSE on IRC \ \-\_/-/ / http://www.amyresource.it/AGI/ | o) `-v-' (--o

[REBOL] Re: Function without argument ... Re:

2000-03-18 Thread giesse
li / /_/_\_\ \ Amiga Group Italia --- L'Aquila | | GIESSE on IRC \ \-\_/-/ / http://www.amyresource.it/AGI/ | o) `-v-' (--o

[REBOL] Re: why tcp port closes by itself

2000-03-18 Thread giesse
bytes to preallocate. Regards, Gabriele. -- o) .-^-. (--o | Gabriele Santilli / /_/_\_\ \ Amiga Group Italia --- L'Aquila | | GIESSE on IRC \ \-\_/-/ / http://www.amyresource.it/AGI/ | o) `-v-' (--o

[REBOL] Command Line Args Re:(5)

2000-03-13 Thread giesse
[EMAIL PROTECTED] wrote: Yes please. In the case of 'simple things should be simple to do': probe system/options/args gets args probe system/options shows the options object probe system crashes rebol and requires me to use browse-system.r script??? This is not as strange as

[REBOL] Re: rebol and SSL

2000-03-12 Thread giesse
) .-^-. (--o | Gabriele Santilli / /_/_\_\ \ Amiga Group Italia --- L'Aquila | | GIESSE on IRC \ \-\_/-/ / http://www.amyresource.it/AGI/ | o) `-v-' (--o

[REBOL] Freenet Protocol help needed, was closing port within protocol Re:(3)

2000-03-10 Thread giesse
[EMAIL PROTECTED] wrote: I didn't get it to work, I get an error, when I try to open the listen port Trace: system/words/open (path) Trace: tcp://:0 (url) opening: tcp://:0 ** Access Error: Trace: "Error opening socket" (string) Trace: :arg1 (get-word) Error opening socket listen

[REBOL] Multipart emails Re:(3)

2000-03-10 Thread giesse
[EMAIL PROTECTED] wrote: Gabriele, can this decoder handle form-posted data? If yes (or if you think it could, with some changes) can I please have it? (I need to use forms to post files) It is part of YARWeS I, a web server I wrote less than one year ago. So yes, it was intended to

[REBOL] Freenet Protocol help needed, was closing port within protocol Re:(3)

2000-03-07 Thread giesse
/allow etc.), let me know. I did figure out how it works without needing to bother Jeff with questions... ;-) Ciao, /Gabriele./ o) .-^-. (--o | Gabriele Santilli / /_/_\_\ \ Amiga Group Italia --- L'Aquila | | GIESSE on IRC \ \-\_/

[REBOL] Re: REBOL international

2000-03-05 Thread giesse
a lingua fino-a fine] == true lingua == "italian" Regards, Gabriele. -- o) .-^-. (------o | Gabriele Santilli / /_/_\_\ \ Amiga Group Italia --- L'Aquila | | GIESSE on IRC \ \-\_/-/ / http://www.amyresource.it/AGI/ | o) `-v-' (--o

[REBOL] Re: Freenet Protocol help needed, was closing port within protocol

2000-03-04 Thread giesse
ite I think you can return answer here too (even if returning data from insert is not consistent with other protocols) i ; install the protocol i net-utils/net-install freenet self 1 i ] i ; --- Script ending above this line --- i halt HTH, Gabriele. -- o) .-^-. (--o | Gabriele Santilli / /_/_\_\ \ Amiga Group Italia --- L'Aquila | | GIESSE on IRC \ \-\_/-/ / http://www.amyresource.it/AGI/ | o) `-v-' (--o

[REBOL] [REBOL]How to remove email headers Re:

2000-03-03 Thread giesse
/ /_/_\_\ \ Amiga Group Italia --- L'Aquila | | GIESSE on IRC \ \-\_/-/ / http://www.amyresource.it/AGI/ | o) `-v-' (--o

[REBOL] Return value from a Script??? Re:(2)

2000-03-03 Thread giesse
as it returns the last value in a block). Ciao, /Gabriele./ o) .-^-. (--o | Gabriele Santilli / /_/_\_\ \ Amiga Group Italia --- L'Aquila | | GIESSE on IRC \ \-\_/-/ / http://www.amyresource.it/AGI/ | o) `-v

[REBOL] CGI - Generator Re:

2000-03-02 Thread giesse
[EMAIL PROTECTED] wrote: http://www.rebol.cz/cgi/ Jan, this is great! I think it will be very useful here. :-) Ciao, /Gabriele./ o) .-^-. (--o | Gabriele Santilli / /_/_\_\ \ Amiga Group Italia --- L'Aquila | | GIESSE

[REBOL] Freenet Protocol help needed, was closing port within protocol Re:(3)

2000-03-02 Thread giesse
and perhaps give you some more hints. I still have to figure out how to handle copy/part... Ciao, /Gabriele./ o) .-^-. (--o | Gabriele Santilli / /_/_\_\ \ Amiga Group Italia --- L'Aquila | | GIESSE on IRC \ \-\_/-/ / http

[REBOL] closing port within protocol ... Re:(3)

2000-03-01 Thread giesse
: open target result: copy port close port result ] so if you define COPY in the right way for your protocol... Ciao, /Gabriele./ o) .-^-. (--o | Gabriele Santilli / /_/_\_\ \ Amiga Group Italia --- L'Aquila | | GIESSE on IRC

[REBOL] Freenet Protocol help needed, was closing port within protocol Re:

2000-03-01 Thread giesse
| Gabriele Santilli / /_/_\_\ \ Amiga Group Italia --- L'Aquila | | GIESSE on IRC \ \-\_/-/ / http://www.amyresource.it/AGI/ | o) `-v-' (--o

  1   2   3   >