Forgot the 'try command:
header: make system/standard/email [
To: [EMAIL PROTECTED]
From: [EMAIL PROTECTED]
Subject: "Message with a header"
Organization: "Super Org"
]
either error? try [send/header [EMAIL PROTECTED] response header][
Hi, Kai,
From: Kai Peters
KP> From the web tutorials I have doctored the script below
KP> together which leaves me with three questions:
KP> 1) Why do I receive an error if i omit the print line
KP> immediately after the REBOL [] header?
The web HTTP protocol requires that the web server retu
Kai Peters wrote:
>Hi All ~
>
> From the web tutorials I have doctored the script below together which
>leaves me with three questions:
>
>1) Why do I receive an error if i omit the print line immediately after
>the REBOL [] header?
>
>
you should not receive an error? I don't understand exac
On 01-Apr-04, [EMAIL PROTECTED] wrote:
> Thanks for answers!
> The next q. is about faces event handling:
> I would like to use a layout (form) without help of mouse.
> There was some points in couple of documentation files (view
> quide and handling events), but no so much.
> So I am interest
I'm working on a document (draft) which will get
you going. See bottom.
Anton.
> Thanks for answers!
>
> The next q. is about faces event handling:
> I would like to use a layout (form) without help of mouse.
> There was some points in couple of documentation files (view
> quide and handling eve
Thanks for answers!
The next q. is about faces event handling:
I would like to use a layout (form) without help of mouse.
There was some points in couple of documentation files (view
quide and handling events), but no so much.
So I am interested to find some more detailed description or
some ex
On 31-Mar-04, [EMAIL PROTECTED] wrote:
> Hi, List!
> I would like to set up text-list in my layout, so it
> shows just labels, but when selected I could get
> value.
> Like in HTML forms:
> Label 1
> I tried some variants by using data blocks, but not
> yet success.
face/lines provides an in
Hi, "brds Janek",
...
> I would like to set up text-list in my layout, so it
> shows just labels, but when selected I could get
> value.
...
I suspect that there are several ways. Here is one:
data: ["Label 1" "Value 1" "Label 2" "Value 2"]
labels: copy []
foreach [label value] data [append l
how about something like...
data: ["one" 1 "two" 2 "three" 3]
view layout [
text-list "One" "Two" "Three" [print data/:value]
]
HTH!
~~Ammon ;~>
- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, March 31, 2004 1:25 AM
Subject: [REBOL] newbie
Wow! Thanks to everyone who responded!!!
I think I am going to like this list!
From: [EMAIL PROTECTED] on behalf of Tom Conlin
Sent: Tue 3/16/2004 2:21 PM
To: Tom Conlin
Subject: [REBOL] Re: Newbie question: printing to the STDOUT with VIEW
thanks, that I
Hi Greg,
BG> Wow! I actually had now clue you could do thatI was likening
BG> refinements to method callsSo even on user created functions you can
BG> 'chain' or 'pipeline' your refinements?
Yes, though they aren't really "pipelined" other than syntactically.
They can be given in any
thanks, that I will have to remember.
On Tue, 16 Mar 2004, Gregg Irwin wrote:
>
> Hi Tom,
>
> TC> I belive that works everywhere _but_ windows,
> TC> the lack of response from
>
> C:\rebol\view>>rebol -c --do"print {foo}"
>
> TC> seems to confirm it,
>
> Right, you'd have to pipe it somewhere
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:
http://www.rebol.com/docs/core23/rebol
> hmmm
>
> I belive that works everywhere _but_ windows,
> the lack of response from
>
> C:\rebol\view>rebol -c --do"print {foo}"
>
> seems to confirm it,
actually, the problem in this example might be that the --do argument is broken
(ignored) in several versions of rebol... (this might also
r the help!
Greg B.
-Original Message-
From: Charles MOUGEL [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 16, 2004 12:32 PM
To: [EMAIL PROTECTED]
Subject: [REBOL] Re: newbie question
Elan a écrit :
>Hi Greg.
>
>I'm not sure whether or not you realize that whenever help
* Brondo, Greg <[EMAIL PROTECTED]> [040316 07:36]:
>
> 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?
>
> Not to soun
the -c doesn't work in windows...I seem to recall some way of perfoming a
write-io for this purpose?
-Original Message-
From: Gregg Irwin [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 16, 2004 12:40 PM
To: Jorgensen, Erik ( IATS )
Subject: [REBOL] Re: Newbie question: printing t
Hi Tom,
TC> I belive that works everywhere _but_ windows,
TC> the lack of response from
C:\rebol\view>>rebol -c --do"print {foo}"
TC> seems to confirm it,
Right, you'd have to pipe it somewhere in the DOS window. e.g.
C:\rebol\view\rebol -c --do "print {foo} quit" | more
-- Gregg
hmmm
I belive that works everywhere _but_ windows,
the lack of response from
C:\rebol\view>rebol -c --do"print {foo}"
seems to confirm it,
I have a vague recollection of someone on the list wrapping
their scrip in a .bat, writing the data to disk and then printing
the output by reading the fi
Hi Erik,
JEI> How do I get a script to send its output back to the dos window it was
JEI> called from?
You need to use the CGI switch (-c) to tell REBOL to redirect its
output that way.
-- Gregg
--
To unsubscribe from this list, just send an email to
[EMAIL PROTECTED] with unsubscribe as the
Elan a écrit :
>Hi Greg.
>
>I'm not sure whether or not you realize that whenever help documents
>something like
>open/lines
>and help also documents something like
>open/direct
>then you can also use the combination of the two:
>open/lines/direct
>
>
And open/direct/lines/ ...
--
To unsubsc
Hi Greg,
BG> Where are things like open/lines/direct documented? If I execute 'help
BG> open' I can see 'open/lines' and 'open/direct' but no the
BG> 'open/lines/direct'. How is a newcomer to this language supposed to 'know'
BG> these things?
Max gave you a good general answer, so I'll just ad
On Dienstag, 16. März 2004 17:08, Brondo, Greg wrote:
> 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?
>
because thats
Hi Greg.
I'm not sure whether or not you realize that whenever help documents
something like
open/lines
and help also documents something like
open/direct
then you can also use the combination of the two:
open/lines/direct
Brondo, Greg wrote:
>Where are things like open/lines/direct document
you've just discovered the main issue with rebol.
there are a lot of docs on the rebol.com site.
many things are documented on this list only.
searching the list archives is probably the most potent store of information.
I think that the reason the list is so helpfull is that seasoned rebolers
> -Original Message-
> From: Greg Brondo [mailto:[EMAIL PROTECTED]
> BTW, is there anywhere to find info about all the available
> system objects and
> what not in Rebol? I 've notice in a some or Carl's scripts
> he accesses
> object that I've never seen mentioned in the documentat
ED]>
Sent: Tuesday, March 02, 2004 9:43 AM
Subject: [REBOL] Re: newbie question (and some frustration)
>
> From the Link console...
>
>
> Found these words:
>blank-face object! [type offset size span pane text color image
> effec...
>ctx-install-fileset o
ose joinset diffset error space char
letter d...
HTH
~~Ammon ;~>
- Original Message -
From: "Greg Brondo" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, March 02, 2004 9:30 AM
Subject: [REBOL] Re: newbie question (and some frustration)
>
> Thanks!
Thanks! Reduce worked like a champ. Now I think I'm starting to understand a
'little' better ;-).
BTW, is there anywhere to find info about all the available system objects and
what not in Rebol? I 've notice in a some or Carl's scripts he accesses
object that I've never seen mentioned in t
Am Dienstag, 2. März 2004 00:39 schrieben Sie:
> The code below fails with the error listed. The /custom refinement expects
> a block '[post ]'. However, it doesn't like a word that's value is
> a string. What gives? Anyone please help! I've wasted a good hour trying
> to make this work.
htt
My last post was a little premature...
The problem lies in the fact that a word within a block is just a word.
This code should make it all work...
web-data: read/custom http://chiex04.algx.com/phone/phone_search_results.asp
reduce ['post txt-search]
use REDUCE or COMPOSE to get the value of th
You need to use REDUCE instead of REJOIN. REDUCE leaves the value a block
while evaluating the expressions within the block whereas REJOIN evaluates
the expressions and turns them into a string.
HTH
~~Ammon ;~>
- Original Message -
From: "Greg Brondo" <[EMAIL PROTECTED]>
To: <[EMAIL P
Am Freitag, 27. Februar 2004 17:28 schrieben Sie:
> ok, it appears that 'any' or 'some' will traverse the entire input like I
> need. Not that I understand it fully but at least it appears to work.
>
Yes, its like a loop. the difference is how the part after the loop is
handled.
'any -> 0-n mat
TED]
Subject: [REBOL] Re: newbie question
it is better to say what you want
given input, expected output
people get by so nicely without REs some may not know them at all.
I suspect your second slash is off by a char but it hard to be sure :)
off hand I cant recall off hand if the trailing ?
Thanks for the reply. This will only work once though? Or will it work on
many lines (returning the match each time -- like a loop) ?
-Original Message-
From: Tom Conlin [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 26, 2004 5:07 PM
To: [EMAIL PROTECTED]
Subject: [REBOL] Re
it is better to say what you want
given input, expected output
people get by so nicely without REs some may not know them at all.
I suspect your second slash is off by a char but it hard to be sure :)
off hand I cant recall off hand if the trailing ? makes it longest or
shortest matching, also a
* Kai Peters <[EMAIL PROTECTED]> [031223 15:00]:
>
> Hi All ~
>
> am still a bloody newbie and
> want to do the following (on a Redhat box, downloaded latest core today):
>
> I have a file containing a list of ftp URLs in the format:
>
> ftp://:@hostname
>
> I want to iterate through this lis
Hi Stan,
On Tuesday, December 23, 2003, 12:49:12 AM, you wrote:
SS> 1. This mailing list seems to make threads only from the subject string.
SS> In general, though, if you reply to a previous email, the mail client should
SS> include the email ID of the one you're replying to in the "References
Joel Neely, Brett Handly, and Sunanda,
Thank you for replying to my questions. Here is a summary of what I
learned:
1. This mailing list seems to make threads only from the subject string.
In general, though, if you reply to a previous email, the mail client should
include the email ID of
This is a test of the thread mechanism.
Stan Silver
--
To unsubscribe from this list, just send an email to
[EMAIL PROTECTED] with unsubscribe as the subject.
Hi, Stan,
Welcome to the list!
Stan Silver wrote:
> Greetings,
>
> 1. Are mail list threads determined only by the subject? In other words,
> can I add my two cents to an existing topic just by typing in the correct
> subject? Or do I have to reply to an existing email? Does Re: matter in
>
> Also try out the Altme REBOL world
> (Get Altme from safeworlds.com and then visit the REBOL world as user
guest,
> password guest).
And if you do try altme, then once in, click on the accounts group and post
a message there asking for a username password. You'll need to supply an
email and you
Arie wrote:
> Indeed I'd like to update to the 1.2.8 level (which is, as I understand,
less crude than 1.2.10). However I couldn't find that level on the RT site.
Can you tell me where to find it?
I can't seem to find that version either (my search fu seems to have
deserted me). I do have this ve
Wingerden
http://home.zonnet.nl/rebolution
- Original Message -
From: Gregg Irwin
To: Arie van Wingerden
Sent: Saturday, November 15, 2003 7:46 PM
Subject: [REBOL] Re: newbie: missing functions??
Hi Arie,
AvW> when I was trying to work thru some of the cookbook exampl
Hi Arie,
AvW> when I was trying to work thru some of the cookbook examples,
AvW> I came across some functions e.g. "remove-each" and "suffix?"
They are available in newer releases (1.2.8 is a nice one if you don't
want the more drastic (no install) changes in 1.2.10. Once you have a
new version,
Hi Ingo and Ladislav,
thanks for the code! It greatly helps me further on the subject.
Thanx again,
Arie
--
To unsubscribe from this list, just send an email to
[EMAIL PROTECTED] with unsubscribe as the subject.
Hi Arie,
- Original Message -
From: "Arie van Wingerden"
> Hi list,
>
> below a extracted piece of program containing 2 times a "do rejoin".
> I tried hard to not use rejoin, but compose instead, but it did'nt work out properly.
> Could you show me how to rewrite the code in both cases
Hi Arie,
this doesn't look like the most elegant way to do it to me, but it works ...
;--- start script ---
[REBOL []
;
; This function extends a 2nd level object with a function
;
add-affix-func: func [
/local fxn "don't know, wether you need fxname to be a string ..."
] [
fxn:
>
>are equivalent, so why is it that so
many of us have learned to
>feel more comfortable with
>
>foo > 100
>
>than
>
>100 < foo
>
>in our programs? Is it because
our "natural language" habits make
>us subconsciously think of the expresson
(s) above as b
Ooops! I hit the send button before finishing...
[EMAIL PROTECTED] wrote:
>
>>if length? tlist/data > 1000
>
> Try these:
>
> if (length? tlist/data) > 1000
> or
> if 1000 <= length? tlist/data
>
>
> (I always go for the (...) solution as I can't be bothered with reversing
> boole
> Try these:
>
> if (length? tlist/data) > 1000
> or
> if 1000 <= length? tlist/data
The third option is:
if greater? length? tlist/data 1000
> (I always go for the (...) solution as I can't be bothered with reversing
> boolean operations. Maybe this is a good starting point for ano
Hi, Sunanda,
Minor quibble below...
[EMAIL PROTECTED] wrote:
> Kai:
>
>>if length? tlist/data > 1000
>>
>> Can someone give me a pointer as to what i need to do?
>>
>
> Try these:
>
> if (length? tlist/data) > 1000
> or
> if 1000 <= length? tlist/data
>
I think you meant
if
On 12-Oct-03, [EMAIL PROTECTED] wrote:
> Kai:
>> if length? tlist/data > 1000
>>
>> Can someone give me a pointer as to what i need to do?
>>
> REBOL's strict no-precedence interpretation causes problems as the
> line is read as:
>if length? (tlist/data > 1000)
> and that isn't valid
Kai:
> if length? tlist/data > 1000
>
> Can someone give me a pointer as to what i need to do?
>
REBOL's strict no-precedence interpretation causes problems as the line is
read as:
if length? (tlist/data > 1000)
and that isn't valid.
Try these:
if (length? tlist/data) > 1000
or
Hi Kai,
Carl Read wrote:
> On 11-Oct-03, Kai Peters wrote:
<...>
> button "Clear" [
> clear t/data
> show t
> ]
<...>
One thing you should be aware of: you should only _change_the_series_,
e.g. if you'd use
t/data: copy [] ; ATTENTION: That's most surely not what you
On 11-Oct-03, Kai Peters wrote:
> Hi list ~
> How do I
> - add lines to a text-list dynamically
> - knowing that any windows control of this type can only hold a
> finite number of list items, how do i clear a text-list say every
> 1,000 entries?
The lines in a text-list are held in a block c
Re: Newbie stuck again...
Simple and usual error : you use "view" instead of "view/new".
As you can see by yourself with "source view" (read carrefully, there is a trap),
"View" use the "do-events" function that is the same as "wait []".
So it's "View" that do the wait. The program continue just w
Ingo and Andrew,
IH> this is a shot into the blue, but try Scite to call Rebol with the -c
IH> option. This puts Rebol in cgi mode, in which its output should be sent to
IH> standard-out.
Now, why didn't *I* think of that. :\
-- Gregg
--
To unsubscribe from this list
Hi Ged,
GB> Scite is my text editor of choice, which has an
GB> execution option that captures the consoles output.
GB> The problem is that Rebol's virtual console doesn't
GB> seem to send the output to std out.
GB> Is there something I can do so that it does?
I think you'll have to redirect t
Hi Ged,
this is a shot into the blue, but try Scite to call Rebol with the -c
option. This puts Rebol in cgi mode, in which its output should be sent to
standard-out.
I hope that helps,
Ingo
Ged Byrne wrote:
> Scite is my text editor of choice, which has an
> execution option that captures
> Scite is my text editor of choice, which has an execution option that
captures the consoles output.
>
> The problem is that Rebol's virtual console doesn't seem to send the
output to std out.
>
> Is there something I can do so that it does?
You could try invoking Rebol as a CGI and see if tha
How about this:
do-scan?: yes
view/new lay: layout [
button "scan on" [do-scan?: yes]
button "scan off" [do-scan?: no]
]
;;; <- (insert feel code, below)
forever [wait [0:0:3] print now if do-scan? [print "do scan"]]
7-Oct-2
Hi Kai,
On Tuesday, October 7, 2003, 1:58:02 AM, you wrote:
KP> I am trying to write an app that monitors a given set of directories on the
KP> local drive at 5 min. intervals and then transfers any file it may find in
KP> one of these dirs to a ftp server, so it needs to basically loop forever.
On 07-Oct-03, Kai Peters wrote:
> I am trying to write an app that monitors a given set of directories
> on the local drive at 5 min. intervals and then transfers any file
> it may find in one of these dirs to a ftp server, so it needs to
> basically loop forever.
> I want to have a Start/Stop t
Hi Kai,
KP> Why does the face/color not get set to what I would expect, but black
instead?
Because you're returning a word! from the block [yellow red], not a
tuple! value. Just add a REDUCE and you're all set.
view layout [
toggle-start: toggle 60 "Start" mint [
Kai:
>Why does the face/color not get set to what I would expect, but
black
> instead?
> toggle_start: toggle 60 "Start" mint
> [
>face/color: pick [yellow red] face/data
>face/texts/1: pick ["
> > what is the most elegant way to read a value out of an ini file?
I've tidied up my offering and added it to the Script Library. It's now a
function to parse an ini file, plus another function to find keyword values:
http://www.rebol.org/cgi-bin/cgiwrap/rebol/view-script.r?script=parse-
> what is the most elegant way to read a value out of an ini file?
Actaully reading a windows ini file .
This is not elegant, but it parses a standard ini file, with a reasonable
degree of error trapping -- there are some tricky bits as what goes into an INI
file may not correspond to what
> Make your "ini" file itself a REBOL script, that does nothing except
> define words and their values. Then, as the first step in the
> application, DO the "ini" script. This is based on the idea
> that REBOL
> itself is somewhat readable. For example:
>
> Your application:
>
> REBOL []
> .
Welcome, Kai,
Kai Peters wrote:
<...>
> How do I typecast the URL below for use with banner or any other word
> expecting a string?
>
REBOL []
ftpserver: ftp://server.somedomain.net
view layout [ banner to-string ftpserver ]
Kind regards,
Ingo
--
To unsubscribe from this list, just se
Kai:
> ftpserver: ftp://server.somedomain.net
> view layout [ banner ftpserver ]
ftpserver: ftp://server.somedomain.net
view layout [ banner form ftpserver ]
Form -- converts a value to a string
Sunanda
--
To unsubscribe from this list, just send an email to
[EMAIL PROTECTED] with
Hi Kai.
For "the most elegant way" I would direct you to Gabriele ;-).
A workable way would be:
given the ini file
name1="value1"
name2=640
name3=SVGA
Let's assume we are looking for the value of name3:
We need to convert the ini file into something that can be conveniently
processed under R
Hi Kay,
for error handling have a look at
http://www.rebol.com/docs/core23/rebolcore-17.html
Met vriendelijke groet / with kind regards,
Arie van Wingerden
- Original Message -
From: "Kai Peters" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, October 02, 2003 6:40 PM
S
Kai Peters wrote:
>Hi all ~
>
>just stumbled upon REBOL yesterday and have started writing my first min-app
>and the following questions
>
>
just curious ... where have you heard of rebol, folks? Last weeks we can
see new ppl coming :-)
>have come up thus far:
>
>what is the most elegant way
>>> [EMAIL PROTECTED] 10/02/03 11:40AM >>>
>>>what is the most elegant way to read a value out of an ini file?
I have wondered about this myself. If the ini file is something that
exists from some other application, I have no idea, but if you are
writing an application yourself and want to provi
Hi Carlos,
cl> PS: I have added one of yours scripts (along with proper credits)
cl> published at REBOL's Cookbook to REBOLBRASIL Forum
cl> I hope you don't mind
I'm honored! (which also means I don't mind at all :)
-- Gregg
--
To unsubscribe from this list, just s
Gregg,
By the way you are welcome to post at REBOLBRASIL
since its in Portuguese, of course :
Carlos
PS: I have added one of yours scripts (along with proper credits)
published at REBOL's Cookbook to REBOLBRASIL Forum
I hope you don't mind
Em Qua 01 Out 2003 22:29, Gregg Irwin escreve
Hi Arie,
AvW> I decided to create a website with the sole purpose to promote REBOL:
AvW> http://home.zonnet.nl/rebolution/
That's great!
AvW> Perhaps you, experienced guys, could give me some critiques / advice in
AvW> order to improve my website and to promote REBOL even better.
Since it'
Hi Carlos,
cl> As a matter of fact I am doing the same
cl> here in Brazil with a Forum I am currently
cl> running (though no much visited yet :( )
cl> For me it has been a nice experience to translate
cl> examples of REBOL to the Portuguese since
cl> I have learned a lot. Maybe we can exchange s
That's nice Arie!
As a matter of fact I am doing the same
here in Brazil with a Forum I am currently
running (though no much visited yet :( )
For me it has been a nice experience to translate
examples of REBOL to the Portuguese since
I have learned a lot. Maybe we can exchange some
material
I h
Hi Phil,
that works fine!
Thanx,
Arie
- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, September 28, 2003 5:15 PM
Subject: [REBOL] Re: Newbie: some questions about VID
>
> Hi Arie,
>
> I have never used show-popup
the help in this list !
Kind regards,
Arie
- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, September 28, 2003 2:03 PM
Subject: [REBOL] Re: Newbie: some questions about VID
>
> Arie:
> > Concerning "compose": is there
To: <[EMAIL PROTECTED]>
Sent: Sunday, September 28, 2003 2:03 PM
Subject: [REBOL] Re: Newbie: some questions about VID
>
> Arie:
> > Concerning "compose": is there some good documentation on that subject?
>
> Two references from REBOL.com:
>
> www.rebol.com/d
Arie:
> Concerning "compose": is there some good documentation on that subject?
Two references from REBOL.com:
www.rebol.com/docs/words/wcompose.html
www.rebol.com/docs/core23/rebolcore-7.html
and one from Allen's much-missed 'zine:
http://www.rebolforces.com/zine/rzine-1-03/
Sunanda
--
To u
Hi Phil,
thanks for your help and suggestions! Program has improved significantly now
and I learnt a lot.
Q1 I really overlooked that one. Dumb :-(
Concerning "compose": is there some good documentation on that subject?
Thanx again,
Arie
- Original Message -
From: <[EMAIL PROTECTE
lhoch" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, September 16, 2003 5:31 PM
Subject: [REBOL] Re: newbie: Examples / tutorials for networking protocols ?
>
> Welcome Arie,
>
> might I add that since all accesses to external data are done internally
v
Welcome Arie,
might I add that since all accesses to external data are done internally via port
objects ( (including files, networks, even audio and the clipboard) they are all
pretty much accessed the same way... not just the network stuff.
for example, reading text from the clipboard is as e
Hi Gabriele,
> RPT> BTW, that tag? is interesting for me: formed tag string are an
exception in
> RPT> the any-string group.
>
> IIRC in older versions if you inserted a tag into a string you
> didn't get the tag delimiters (only the content of the tag was
> inserted). So maybe that's a l
Hi, Bruno
you could simulate unions with object and functions.
This example put in c first three bits and in x the last five bits
union-c: context [
data: none
c: does [to integer! data / 32]
x: does [to integer! data and 31]
]
dum: make union-c []
dum/data: #"a"
print [dum/data dum/c dum/x]
Hi Romano,
On Thursday, October 10, 2002, 4:34:35 PM, you wrote:
RPT> BTW, that tag? is interesting for me: formed tag string are an exception in
RPT> the any-string group.
IIRC in older versions if you inserted a tag into a string you
didn't get the tag delimiters (only the content of
Hi Bruno,
<< How could i use this kind of union with Rebol ? >>
What is the goal you really want to achieve? I.e. rather than trying to
figure out how to model something like a C union in REBOL, what is the
problem you want to solve, stated in "human" terms? Coercing/casting values,
formatting d
Hi Gabriele,
> RPT> if all [any-string? target any [not any-string? :search tag?
:search]]
> RPT> [search: form :search]
Rethinking to this, now It seems to me that this expression is unuseful in the
parse version, it is used in the RT version only to calculate the string
length of search (i
Hi Gabriele,
> RPT> if all [any-string? target any [not any-string? :search tag?
:search]]
> RPT> [search: form :search]
>
> Does this work? You have 'ALL as a local word...
Does not work. I forgot system/words/, i try also to remove the if (but i'm
not sure that the efinal evaluation of the
Hi Romano,
On Wednesday, October 9, 2002, 11:25:46 PM, you wrote:
RPT> if all [any-string? target any [not any-string? :search tag? :search]]
RPT> [search: form :search]
Does this work? You have 'ALL as a local word...
BTW, for a long string copying to a new string will probably be
fast
Hi Doc,
> (I usually do not use 'replace mezzanine in my code unless i don't care
about
> speed)
Time to try to speed up replace?
This is my first try (+ 100% in my system) . Anything better?
(I'm using more and more parse and i usually reach more fast loop (+50% -
+100%),
more compact and mor
Hi Romano,
En réponse à Romano Paolo Tenca <[EMAIL PROTECTED]>:
> Hi,
>
> > I would do it like that :
> >
> > word-split: func [text [string!] value [string!] /local fst snd][
> > parse text [to value s: (fst: copy/part txt s) value s: (snd:
> copy
> > s)]
> > reduce [fst snd]
> > ]
>
Hi,
> I would do it like that :
>
> word-split: func [text [string!] value [string!] /local fst snd][
> parse text [to value s: (fst: copy/part txt s) value s: (snd: copy
> s)]
> reduce [fst snd]
> ]
and i:
word-split: func [s w][parse/all replace s w #{00} "^(0)"]
0 not in string :-
Hi Chris,
Christopher Ross-Gill wrote:
>
> Hi,
>
> >join word-split "hellotherethisisanexample" "this"
> > == "hellothereisanexample"
>
> >> rejoin word-split "hellotherethisisanexample" "this"
> == "hellothereisanexample"
>
> I'm sure there's a more elegant way to do it than my effort
Hi,
> >> rejoin word-split "hellotherethisisanexample" "this"
> == "hellothereisanexample"
Can do better, and not use preset words (d'oh!)...
- Chris
--
REBOL []
word-split: func [
string [string!] word [string!] /local txt blk
][
blk: copy []
while [txt: find string word][
Hi,
>join word-split "hellotherethisisanexample" "this"
> == "hellothereisanexample"
>> rejoin word-split "hellotherethisisanexample" "this"
== "hellothereisanexample"
I'm sure there's a more elegant way to do it than my effort below, or one
that splits the string at all instances of the wo
1 - 100 of 280 matches
Mail list logo