Rebol Talk Forum  |  REBOL Discussions  |  REBOL Core  |  Topic: Memory manipulation using REBOL
Pages: [1] Print
Author Topic: Memory manipulation using REBOL  (Read 806 times)
taifbadr
Newbie
*
Offline Offline

Posts: 8


View Profile
Memory manipulation using REBOL
« on: September 01, 2006, 07:00:02 AM »

Hello all...
Is there a method to treat with memory location address using REBOL as efficient as the concept of pointers in C language?
Logged
Gabriele
Full Member
***
Offline Offline

Posts: 182


View Profile WWW
Re: Memory manipulation using REBOL
« Reply #1 on: September 02, 2006, 06:55:03 AM »

Well, there is, but why would you ever want to do that?
Logged
taifbadr
Newbie
*
Offline Offline

Posts: 8


View Profile
Re: Memory manipulation using REBOL
« Reply #2 on: September 02, 2006, 02:10:26 PM »

Thanx Gabriel !!!
When i first time know about REBOL in feb 2006 , i loved this language very much and i looked to it as a programmer paradise and it will be an end of lots of suffer i face in visual and database programming using C/C++
My main aim in using memory locations is programming communication sessions between computer and external machines or devices linked to computer via serial ports,parallell ports,USB ...etc
also advanced  programmers consider it a flexible feature that THEY CAN ACCESS THE MEMORY LOCATIONS directly
Logged
Gabriele
Full Member
***
Offline Offline

Posts: 182


View Profile WWW
Re: Memory manipulation using REBOL
« Reply #3 on: September 03, 2006, 05:37:55 AM »

The OS doesn't let you do that, unless you're writing a device driver, and you can't do that in REBOL.

Anyway, one example is:

Code:
>> s: make struct! [str [string!]] [""]
>> s/str
== ""
>> third s
== #{E0073901} ; the address of the string
>> change third s #{00100000} ; set to any address you like
== #{}
>> s/str
; at this point, of course, REBOL crashes, as would any C program that does something like this ;)

I hope noone ever starts doing things like this. Wink
Logged
Pages: [1] Print 
Rebol Talk Forum  |  REBOL Discussions  |  REBOL Core  |  Topic: Memory manipulation using REBOL
Jump to:  

  
Quick Search...

Advanced search
  
Welcome, Guest. Please login or register.
Did you miss your activation email?
November 21, 2008, 03:49:05 PM
Username: Password: Session Length:
  

News: 01-09-08

Alpha version of REBOL 3 has been released!


  
2294 Posts in 593 Topics by 3753 Members
Latest Member: swift

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

RT design by Defiant Pc