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

World: r3wp

[!REBOL3-OLD1]

BrianH
23-May-2009
[14340x2]
Once you have plugins and commands, there may be less need for rebcode! 
- you can just write natives if need be. The reason for a rebcode 
replacement then would be security (not rebcode's strong suit), since 
rebcode would be managed code.
security (not *the old* rebcode's strong suit)
Pekr
23-May-2009
[14342]
OK, thanks for explanation. Looking forward to something more concrete 
= 1st plugin code example :-)
Maxim
23-May-2009
[14343]
brian: what is Carl using for compilation... GCC?
BrianH
24-May-2009
[14344]
He doesn't say, but I expect GCC on *nix and OSX, and I'd be surprised 
if he wasn't using MSVC on Windows. REBOL has been around much longer 
than GCC has been usable to build normal Windows apps. We'll seee 
soon :)
Paul
24-May-2009
[14345]
what do you call words such as "back" and "tail" and "next"?  Is 
there a special term were using for these?
BrianH
24-May-2009
[14346]
I call them navigation functions, usually for series. I'm not aware 
of any official term.
Paul
24-May-2009
[14347x2]
I'm thinking about putting in an enhancement request.
or wish.
BrianH
24-May-2009
[14349]
Interesting. For what do you wish? :)
Henrik
24-May-2009
[14350]
if so, there should be a way to classify them in a helpful way in 
documentation and help
BrianH
24-May-2009
[14351]
These functions have been part of the recent debate over series! 
and its types...
Henrik
24-May-2009
[14352]
the nearest method is to search for functions that manipulate specific 
datatypes.
Paul
24-May-2009
[14353x2]
http://curecode.org/rebol3/ticket.rsp?id=844
I just submitted that wish.
Henrik
24-May-2009
[14355]
there is a better way to write that request: AT should support block 
directly as index.
Paul
24-May-2009
[14356]
what you mean?
Henrik
24-May-2009
[14357]
copy/part does that.
Paul
24-May-2009
[14358]
yeah but that is a copy.
BrianH
24-May-2009
[14359]
BACK TAIL series sets the position - the AT is a noop in your example.
Paul
24-May-2009
[14360]
not sure what that means.
Henrik
24-May-2009
[14361]
BrianH, not if the AT specifies a different series than the BACK 
TAIL.
Paul
24-May-2009
[14362]
if it isn't doable just update the ticket to state such.  I just 
wanted to get the wish in there in case I think of it again and forget 
we discussed it.
Henrik
24-May-2009
[14363]
instead of writing:

at block1 index? block2

it could be:

at block1 block2
Paul
24-May-2009
[14364x2]
But those are supposing you know the index length.   I was hoping 
to avoid that with my request.
Specifically for dynamically allocated series.
Henrik
24-May-2009
[14366]
you can always use skip -n if you want to jump relatively in a series.
Paul
24-May-2009
[14367x2]
to me it just seemed more REBOLish to use AT in the manner that I 
posted.
Follows the KISS principle to me.
BrianH
24-May-2009
[14369]
I can update the ticket if you like. What would you like it to say?

INDEX? can return the result of your calculated position. Your example 
would be:
AT series1 INDEX? BACK TAIL series2
Paul
24-May-2009
[14370x2]
Wait a minute - Carl's method is simple things should be simple to 
do (STSBSTD).  A longer acronym.
You can write what you want.  It is just a placeholder for me to 
not suggest it again.
BrianH
24-May-2009
[14372]
I'm not downplaying it, I'm just trying to clarify. At this point 
I don't understand what you want well enough to answer the question.
Oldes
24-May-2009
[14373]
I don't understand it either... what should be result of your example 
code?
Steeve
24-May-2009
[14374]
i think he wants AT working like COPY/PART (the index could be an 
integer or a serie aswell)
BrianH
24-May-2009
[14375]
Well, if the index is a series offset, even a calculated one, then 
you can already have a reference to that offset without the AT.
Steeve
24-May-2009
[14376x2]
It makes sense if the 2 series are differents.
but i agree, i don't see so much use cases for that.
Paul
24-May-2009
[14378]
>> series
== [1 2 3 4 5 6 7 8 9 10]
>> series: at series back tail series
>> series: [10]
BrianH
24-May-2009
[14379]
>> series
== [1 2 3 4 5 6 7 8 9 10]
>> series: back tail series
== [10]
The AT is implied by TAIL, and then again by BACK.
Paul
24-May-2009
[14380x2]
yeah only example I can think of.
I had it written down from something I had been working on.  Go ahead 
and resolve the ticket if you like - if I come across the problem 
that resulted in my notes then we can revisit it.
BrianH
24-May-2009
[14382]
An example where you are trying to go to the same position of another 
series would be more useful, since that would mean removing an INDEX? 
function instead of adding an AT function.
Paul
24-May-2009
[14383]
Yeah in my notes I have "no copy'" so something I was involved with 
wanted the fucntionality without copy.
BrianH
24-May-2009
[14384]
Interesting. No copying is going on here, just references passed 
around.
Paul
24-May-2009
[14385x3]
Ahhh, just AT series back tail series.
so in other words the following:

at series back tail series

The assingment is implied.
no need to set series: at series back tail series.  But instead the 
at command is manipulating the series directly for the navigation 
arguments.
Steeve
24-May-2009
[14388]
Wait... Are you Paul ? really ?
Paul
24-May-2009
[14389]
Yes Steeve.