|
Pages: [1]
|
 |
|
Author
|
Topic: Memory manipulation using REBOL (Read 806 times)
|
|
taifbadr
|
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
|
Well, there is, but why would you ever want to do that?
|
|
|
|
|
Logged
|
|
|
|
|
taifbadr
|
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
|
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: >> 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. 
|
|
|
|
|
Logged
|
|
|
|
|
|
Pages: [1]
|
|
|
 |
News: 01-09-08 Alpha version of REBOL 3 has been released!
2294 Posts in 593 Topics by 3753 Members
Latest Member: swift
|