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

World: r3wp

[Core] Discuss core issues

Pekr
24-Oct-2005
[2532x2]
as for dates, I once coded an algorithm to tell me the week. I sometimes 
miss date/week, date/day-of-year (number of days since the beginning 
of the year)
Ladislav - you mentioned IF in regards to parse. I thought it is 
a part of your REP you was supposed to post to RT? If not, and if 
it is not in Rambo yet, I may submit it then, cutting your request 
from here :-)
Sunanda
24-Oct-2005
[2534]
Dates: many useful conversion functions here:
http://www.codeur.org/forum/edit_msg.php?ID=10636&theme=17
Ladislav
24-Oct-2005
[2535]
Pekr: don't, I wanted Bryan to do it on purpose
Pekr
24-Oct-2005
[2536]
why? :-) you expect him, while submitting it, to come to some ideas? 
:-)
Ladislav
24-Oct-2005
[2537x2]
yes
eh, sorry, I wanted to say Brian, of course
Pekr
24-Oct-2005
[2539]
Ladislav: you should not use Rambo for puzzles :-))
Graham
24-Oct-2005
[2540]
what happens to the series if you insert elements  into the list 
while you're in a forskip loop?

what position are you at  now?
Ladislav
24-Oct-2005
[2541]
Graham: FORSKIP is a mezzanine, so it is easy to check
Pekr
24-Oct-2005
[2542]
that is the similar question of what happens to parse input stream 
:-) I did some inline changes, it seemed to work, but I probably 
confused indexing somehow not returning to proper position, after 
I did some replacing in it :-)
Chris
24-Oct-2005
[2543]
Graham, re. dates, though likely redundant, you could add an 'age' 
field...
BrianH
24-Oct-2005
[2544]
Ladislav, Petr: It is all right to use ME for puzzles though, time 
permitting :)
Ladislav
24-Oct-2005
[2545]
I just wanted to give you the opportunity to write it, because I 
knew you were thinking about it,...
james_nak
25-Oct-2005
[2546]
Is there a way to read the dates when a file was created? I'd like 
to add a "newest" file choice to one of my apps. Thanks.
Geomol
25-Oct-2005
[2547]
James:
probe info? %rebol.exe
Volker
25-Oct-2005
[2548]
creation, not modified? depends on os. look for get-modes.
james_nak
25-Oct-2005
[2549]
Thank you. How you all know this stuff amazes me! Again thanks.
Volker
25-Oct-2005
[2550]
We are all role-players, and after some years of trying alll doors.. 
;)
james_nak
25-Oct-2005
[2551]
Yeah, I see what you mean. It takes that kind of person. I just keep 
on staying in the same room until I give up and ask for the "cheat 
code."
Brock
25-Oct-2005
[2552]
The difference between 'real programmers' , language junkies and 
us newbies.  I fall into your category as well James.
Anton
25-Oct-2005
[2553]
On Windows:
>> get-modes %rebol.exe 'file-modes

== [creation-date access-date modification-date owner-write archived 
hidden system]
>> get-modes %rebol.exe 'creation-date
== 19-Aug-2003/11:21:03+10:00
Brock
25-Oct-2005
[2554]
newbies/hobbyists
Volker
25-Oct-2005
[2555]
I ask for cheatcodes immediate. There are enough doors left anyway.. 
;)
Alek_K
27-Oct-2005
[2556]
Style/functionality question: I'm writing a function to deal with 
adding to block a block with [Title Content [(Childs if exists)]].

Childs are not required - is it better to add [Title Content] (if 
no childs) or to provide empty block - [Title Content []]?
BrianH
27-Oct-2005
[2557x3]
Support both by setting a default value of an empty block in your 
code, perhaps like this:
childs: any [pick data 3 []]
Pick returns none if out of range, so any will move on to the next 
expression, your default value.
If you need to change the childs block, remember to use  make block! 
0  or  copy []  instead of  [] .
Alek_K
27-Oct-2005
[2560x3]
Yes, i know that.
My question is more "philosophical" - what is better by experience.
As for now, I think that providing empty block will be more "compact"
BrianH
27-Oct-2005
[2563]
It's better to be forgiving in your dialects - it leads to fewer 
syntax errors.
Alek_K
27-Oct-2005
[2564]
be forgiving
 - what do you mean?
BrianH
27-Oct-2005
[2565x2]
brb
From a philisophical standpoint, it is best to be somewhat forgiving 
in your evaluation of the syntax of data that is input to your function, 
but exact in the syntax of the data that is ouput from your function. 
That will make sure that the effect of errors or flexibility in the 
data is limited to the code that is doing the initial evaluation. 
This means that if you can figure out from context what a default 
value is, do so, and then your function will be more usable, particularly 
when the data may be written by hand.
Alek_K
27-Oct-2005
[2567]
Thanks Brian :)
BrianH
27-Oct-2005
[2568]
It's sort of like the stated philosophy of Unix command line utilities.
Graham
29-Oct-2005
[2569]
this should be in core

 cls: does [ print "^(1B)[J" ]
Graham
30-Oct-2005
[2570]
I am creating some variables dynamically

so, they are .. "formvar1" .. "formvarn"

how do I unset them?
Terry
30-Oct-2005
[2571]
unset[ formvar1]
Graham
30-Oct-2005
[2572]
>> var1: does [ print "hello" ]
>> var: join "var" 1
== "var1"

so, given 'var, how do I unset var1 ?
Izkata
30-Oct-2005
[2573]
>> unset to-word var
Graham
30-Oct-2005
[2574x2]
ahh...
that seems to work.
BrianH
30-Oct-2005
[2576]
While reviewing the action! functions, I noticed the path action. 
The doc comment says "Path selection.". The parameters aren't typed. 
Does anyone know what this action does, and how to use it? Or whether 
it can be called directly at all?
OneTom
30-Oct-2005
[2577x2]
what are action values anyway?
imean, where are they documented?
DideC
30-Oct-2005
[2579]
help action!
OneTom
30-Oct-2005
[2580x2]
it only  list all the action! values. hey you are just bluffing! 
:)
btw, ive seen u invited to the french translation task. im heavily 
trying to learn rebgui, so u as well can use a nice editor for the 
qtask lang file ;)