Re:Programming Languages as Constraints
by adrianratnapala on Friday June 03, 2016 @04:57PM
(#11833225)
My assumption had always been that our modern languages had already done that for us, so we don't need to.
But you are right, the original statement is absurd. Ada and (at least Turbo-) Pascal have pointers. And so does Java.
Algol, * Pascal, Modula-2, Modula-2+, Modula-3, Oberon, Oberon-2, Active Oberon, Component Pascal, Ada, D, Swift, Rust
And I am not listing all of them.
Re:Programming Languages as Constraints
by icebraining on Friday June 03, 2016 @06:27PM
(#11833719)
Even Python, using ctypes.
LuaJIT's FFI also allows to manipulate and dereference arbitrary pointers.
I see having pointers to support dynamic memory allocation as something different from the ability to refer to memory addresses. For example, in C, one can [1] write a program that attempts to write data to any memory address. With Java, that is not possible. With pascal, Wirth's intention was similar, but IIRC variant records provided an undesired escape hatch.
[1] probably not without invoking implementation-dependent behavior.
In most Pascal dialects (not on the first ISO)
var
CrtMode: byte absolute $0040:$0049;
P: ^byte;
begin
P := Ptr($40, $49);
end
Re:Programming Languages as Constraints
by tatterdemalion on Friday June 03, 2016 @06:43PM
(#11833789)
The language examples are clearly not intended to be comprehensive.
Someone should learn about Algol family of programming languages.