When typing in rebol console
do read http://askcodegeneration.com/csharp/simple-class/
I get get-access-modifier called twice:
Access modifier:
1. private: member can be accessed only by code in the same class
2. protected: member can be accessed only by code in the same class or in a derived class
3. internal: member can be accesse...
Isn't it weird that
ask-params: funct[config-file [file!] default-class-name default-fields][
probe value? 'class-name
input
either (value? 'class-name) [
probe class-name
][
]
]
ret-block: ask-params %askcodegeneration.com/csharp/simple-class/simple-class.params.txt "Person" "First Name, Last Name"
would return false ...
Let's consider this header:
REBOL [
Title: "Rebodex"
Date: 23-May-2010
Version: 2.1.1
File: %rebodex.r
Author: "Carl Sassenrath"
Modification: "Rebtut"
Purpose: "A simple but useful address book contact database."
Email: %carl--rebol--com
library: [
level: 'intermediate
platform: none
...
I did this
as explained here but it was for IIS 6
http://rebolforum.com/index.cgi?f=printtopic&topicnumber=39&archiveflag=new
I also activated 32 bits for application pool as explained here
http://blogs.iis.net/wadeh/archive/2009/04/13/running-perl-on-iis-7.aspx
But when browsing to the test script it doesn't work, seems to...
I need a bunch of use-rule for including several verbs in a parse rule: Connect, Use, List, Show etc.
use-rule: [some
[copy Actor to 'Connect thru 'Connect 'to copy UseCase to end (append output rejoin ["[" Actor "]-(" "Connect to " UseCase ")"])]
|
[copy Actor to 'Use thru 'Use copy UseCase to end (append output rejoin ["[" Actor "]...
x below is none instead of {"abdfff} in this very basic parse rule:
>> t: {aaa"abdfff"dddddddd}
== {aaa"abdfff"dddddddd}
>>
>> parse t [to {"} copy x to {"}]
== false
>> x
== none
...
I read the script from clipboard:// and write it to a linux ftp server:
#!/home/myaccount/cgi-bin/rebol -c
Rebol []
mywhois: func[thedomain /local whois][
whois: read rejoin [whois:// thedomain "@" "whois.internet.bs"]
parse whois [to "Expiry Date: " thru "Expiry Date: " copy Expiry-Date to newline]
Expiry-Date
]
parse sy...
Let's say I am in a function, I need to know in which of the above context my function is executed.
...
There is a new funct function in rebol which allows to make variables automatically bound to local context.
What's the difference with ladislav funcs here:
http://www.fm.vslib.cz/~ladislav/rebol/funcs.r
funct has a problem with value? function as it returns true even if a variable has not been set at runtime yet, does funcs has the sam...
If I type in a browser (see http://stackapps.com/questions/2/getting-started-with-the-api) :
http://api.stackoverflow.com/1.0/stats
it returns
{
"statistics": [
{
"total_questions": 800830,
"total_unanswered": 131356,
"total_accepted": 500653,
"total_answers": 2158752,
"total_comments": 3125048...
Rebol integrates most internet protocol but not ssh. Is it because it's impossible to program it in rebol ?
...
I typed this code:
p: open tcp://rebol.com:80
insert p "HEAD / HTTP/1.1 ^/"
insert p "Host: rebol.com/ ^/^/"
while [data: copy p][prin data]
First line of output is 400 Bad Request
>> p: open tcp://rebol.com:80
>> insert p "HEAD / HTTP/1.1 ^/"
>> insert p "Host: rebol.com/ ^/^/"
>> while [data: copy p][prin data]
HTTP/1.1 400 Bad Req...
What's the function's name to change this permission on ftp file (ftp software can do it so I guess Rebol can too)?
...
When I change login/password through User settings, they don't persist. So I set it programmatically
proxy: system/schemes/default/proxy
set in proxy 'host xxx.yyy.www.zzz
set in proxy 'port-id xxxx
set in proxy 'user "login"
set in proxy 'pass "password"
set in proxy 'type 'socks
It did persist but when testing it with
read http:/...
I saw the r3 extension doc and
I'd like to know if it would be able to support any DLL, including those requiring callbacks, for example win32 hook functions for intercepting windows messages.
...
Given a list:
a: [1 2 3 4 5]
Why is it clear a to clear the list and unset 'a to unset it? I would have expected both clear and unset to consistently take either a or 'a as their arguments.
...
I tried to add a repeat refinement to build-markup function using the previous answer:
http://stackoverflow.com/questions/2775701/how-to-bind-to-foreach-context
build-markup: func [
{Return markup text replacing <%tags%> with their evaluated results.}
content [string! file! url!]
/repeat block-fields block-values
/quie...
First of all, is it correct to use the term pointer when talking about the internal index in a list?
Consider the following Rebol code:
a: [1 2 3 4 5 6 7 8 9]
a: at a 4
b: a
a and b both point to the same list and both return [4 5 6 7 8 9]. This I understand. However, I don't see how the internal index can be moved in a, but not in...
I read cheyenne server is going to implement it ( http://web.syllable.org/news/2010-01-02-22-16-WebSockets-for-Cheyenne-web-server.html ) , but for learning purpose I'd like more to see the shortest sample code of a websocket server and a websocket client in rebol / rebol or rebol / rebol view or rebol / javascript.
like this example in...
I tried to generate the actions block dynamically in the code below (from static version here http://stackoverflow.com/questions/3326484/extending-build-markup-with-repeat-refinement/) but It doesn't work why ?
build-markup: func [
{Return markup text replacing <%tags%> with their evaluated results.}
content [string! file! url!...