Rebol Talk Forum  |  Getting Started  |  Newbie Help  |  Topic: why are local series static?
Pages: [1] Print
Author Topic: why are local series static?  (Read 245 times)
DrenThales
Newbie
*
Offline Offline

Posts: 6


View Profile
why are local series static?
« on: April 12, 2008, 11:43:39 AM »


I was just wondering why local series are static (why they keep their state after leaving the local block)? Numeric variables, on the other hand, do not. Also, when comparing local series that have the same value but different scope to each other with =?, true is returned. Does this imply that all series of the same value are stored at the same location?
Logged
btiffin
Jr. Member
**
Offline Offline

Posts: 58


View Profile
Re: why are local series static?
« Reply #1 on: April 12, 2008, 03:53:31 PM »

Short (meaningless) answer; REBOL attempts to optimize storage of series data and scalar data it treated a little differently.

For some details discovered by an intrepid REBOL explorer, check out the Ladislav Mecir articles.
http://www.fm.tul.cz/~ladislav/rebol

For a treatise on Series; http://en.wikibooks.org/wiki/REBOL_Programming/Language_Features/Series

For the equality questions;
http://www.fm.tul.cz/~ladislav/rebol/identity.html
and
http://www.fm.tul.cz/~ladislav/rebol/contexts.html

These articles are not for the faint of heart and may take two or three read throughs with some experimenting, but are well worth the effort.

Cheers
Logged
Sunanda
Full Member
***
Offline Offline

Posts: 100


View Profile
Re: why are local series static?
« Reply #2 on: April 13, 2008, 02:39:01 PM »

REBOL3 will (most likely) support closures -- so all functions of that type will have local values:

http://www.rebol.net/wiki/Closures
Logged
Pages: [1] Print 
Rebol Talk Forum  |  Getting Started  |  Newbie Help  |  Topic: why are local series static?
Jump to:  

  
Quick Search...

Advanced search
  
Welcome, Guest. Please login or register.
Did you miss your activation email?
August 28, 2008, 09:46:01 PM
Username: Password: Session Length:
  

News: 01-09-08

Alpha version of REBOL 3 has been released!


  
2231 Posts in 579 Topics by 1733 Members
Latest Member: tea lover gift basket

  Rebol Talk Forum | Powered by SMF 1.0.9.
© 2001-2005, Lewis Media. All Rights Reserved.

RT design by Defiant Pc