r3wp [groups: 83 posts: 189283]
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

World: r3wp

[I'm new] Ask any question, and a helpful person will try to answer.

Graham
31-May-2009
[2907]
well.. as I said, not aware of any limit.  maybe it's your editor?
mhinson
31-May-2009
[2908]
it is like that because I have a bunch of lines that will become 
a function & I am comparing them in some cases, and excludeing them 
in other cases to debug my code.
Graham
31-May-2009
[2909x2]
well, use 'command { }
comment
mhinson
31-May-2009
[2911x2]
;; ownerRule: ["owner "  copy owner to newline  

;; ((if (error? try [StructuredData/(to-word thing)/owner]) [append 
StructuredData/:thing reduce[owner copy[]]])(append StructuredData/(to-word 
thing)/owner compose/deep [(owner)]))

;; ownerRule:   ["owner "  copy owner to newline  (append StructuredData/(to-word 
thing) compose/deep [owner  [(owner)]])]
The comment thing sounds good... I will use that instead.  Thanks.
Graham
31-May-2009
[2913x2]
and you only need a single ;
;; is redundant
mhinson
31-May-2009
[2915]
Those lines I posted still do strange stuff with a single ;  at the 
beginning.  Could it be a bug with the console?  I do 2 ;; to make 
them stand out more, although syntax highliting does that already. 
Thanks.
Maxim
31-May-2009
[2916]
when using the console, always use:
 do clipboard://
mhinson
31-May-2009
[2917]
Thanks, that avoids the anomolie :-)
Sunanda
1-Jun-2009
[2918x2]
A tip I picked up off of the Mailing List years ago (thanks to whoever 
it was)
   doc: does [do clipboard]
then you need to just type
  doc
to
  DO Clipboard://
Opps -- one line of code, and 100% of it is in error:-(
  doc: does [do clipboard://]
Maxim
1-Jun-2009
[2920]
I put this in my %user.r

paste: does [do clipboard://]
Gregg
2-Jun-2009
[2921x2]
I hace CC to write clipboard://, and load-clip and read-clip as well. 
Very handy.
I also have CDR for change-dir+to-rebol-file.
mhinson
3-Jun-2009
[2923]
Hi, is thre a neater way to do this please an avoid so many reduce 
statements please?
QQ: []

func1: func [o1] [append QQ copy/deep reduce [reduce o1 reduce reduce 
[reduce o1]]]
owner: "Luke" 
func1 'owner
[owner ["Luke"]]
Chris
3-Jun-2009
[2924x2]
func1: func [o1][append QQ compose/deep [(o1) [(get :o1)]]
missing close bracket
Gregg
3-Jun-2009
[2926]
And sometimes it can make sense to split things up into multiple 
operations (just food for thought).

func1: func [o1] [append QQ o1  repend/only QQ [get :o1]]
mhinson
4-Jun-2009
[2927]
Thanks everyone.  I like the shortcut ideas, once I can find the 
right %user.r file to modify.  I think I probably need to delete 
all copies & start again as because I have downloaded Rebol several 
time in my inital confusion when I first started trying to use it 
my PC is confused.


I have not come across GET before so that seems to be my missing 
link, thanks.
Sunanda
4-Jun-2009
[2928]
Multiple copies of REBOL is a pain that several of us have.
Graham
4-Jun-2009
[2929]
It's a result of programming with Rebol which tells us to use 'copy 
to be safe
Oldes
4-Jun-2009
[2930x2]
I have no problems with multiple REBOL copies.. I have all REBOL 
exe files in one directory. The latest version named like rebol.exe, 
core.exe and older which I sometimes need as rebview1361031.exe for 
example
I think I was not doing any REBOL installation.. just DOWNLOAD - 
COPY - RUN
Graham
4-Jun-2009
[2932]
I have .r associated with my editor :)
mhinson
4-Jun-2009
[2933]
With the shortcut  to do clipboard://  it complains if there is no 
 rebol[]   header.  Do folk only use it for bigger blocks of code, 
rather than a few lines that need testing?  As I suppose pasting 
it straight into the console for small chunks works pretty well? 
Thanks.
Ladislav
4-Jun-2009
[2934]
do read clipboard://
mhinson
4-Jun-2009
[2935]
Thanks
BrianH
4-Jun-2009
[2936]
I often put
;rebol []

in front of my code when testing it, then include the rebol [] when 
selecting.
mhinson
5-Jun-2009
[2937]
Hi, I have associated .r files with Rebol/view, but when I open my 
.r files I get an error
** Access Error: Cabbot open /c/documents
** Near: do/args script system/script/args


I tried associating .rs with Rebol/View & that works ok...  I suspect 
this is a windowsy problem, any suggestions please?
BrianH
5-Jun-2009
[2938]
You need quotes around the association, like this: "%1". Edit the 
file type in the Folder Options control panel.
Maxim
5-Jun-2009
[2939]
hope you have XP... cause vista only allows to fix associations thru 
the registry editor  :-(
BrianH
5-Jun-2009
[2940]
But that's not hard either.
Maxim
5-Jun-2009
[2941x2]
and you can't set manual paths in shortcuts, only select "installed" 
applications.  >-:(
maybe not if you are used to playing in it, but finding and properly 
setting the registry items for rebol isn't really obvious (especially 
if you add the -qs) options.
BrianH
5-Jun-2009
[2943]
But that doesn't affect the associations in the registry :)
Maxim
5-Jun-2009
[2944x3]
they removed many USER features in vista, thinking it makes is safer 
if you can't do anything with your computer... but the features are 
still there anyways... which is totally stupid... its in fact less 
safe, now that you can't fix things directly in the panels.
In XP I had applications that had different argument setups directly 
in shortcuts... can't do that in vista... well, I installed XP now 
so I can't complain anymore... I can actually do stuff with my pc 
now.
XP was designed for dumb users... vista went a step further and added 
that pre-requisite to its analysts.
BrianH
5-Jun-2009
[2947]
Well, for most users "fix" = "make things worse", except for the 
users who are probably familiar with the registry. I agree about 
the shortcut thing though - not familiar enough with Vista to know 
the workaround for that.
Maxim
5-Jun-2009
[2948]
I try to design software thinking people are smart, but with the 
idea that you have to learn & understand it first.  Learning curve 
has to be exponential, but start flat. 

Misunderstanding and being dumb are different.  MS doesn't get that.
BrianH
5-Jun-2009
[2949]
Everyone is dumb sometimes, and the more generally smart even more 
often. As long as the software doesn't get in the way of doing the 
smart thing, and perhaps even enables it, that's good. If it discourages 
dumb behavior, better.
Maxim
5-Jun-2009
[2950]
I agree.    Its the software that has to be smart... not the user 
 ;-)
BrianH
5-Jun-2009
[2951]
Software at its best is a distillation of your smarter moments, for 
later use during your dumber ones :)
Maxim
5-Jun-2009
[2952]
(or someone else's  ;-)
mhinson
5-Jun-2009
[2953]
I dont see anything to put quotes round.
BrianH
5-Jun-2009
[2954]
Are you on XP/2000 or Vista?
mhinson
5-Jun-2009
[2955]
XP...  I may have found it now, I remeber experimenting adding %1 
%2 %3 ......  then I remeber thinking I should have just added "%1"
BrianH
5-Jun-2009
[2956]
Unfortunately, the installer hasn't worked at all in the 2.7 series. 
In the 2.6 series it was broken, and in prior releases even more 
so.