[47823] in Cypherpunks
Re: Hack Java
daemon@ATHENA.MIT.EDU (Matthew Sheppard)
Tue Jan 23 23:44:38 1996
From: Matthew Sheppard <Matthew.Sheppard@Comp.VUW.AC.NZ>
To: cypherpunks@toad.com
In-Reply-To: Your message of "Tue, 23 Jan 1996 11:30:01 CDT."
<9601231630.AA07540@sulphur.osf.org>
Date: Wed, 24 Jan 1996 17:33:01 +1300
The shadowy figure took form and announced "I am Rich Salz and I say ...
> Then if I have the code
>
> tricky_pointer = 10000;
> for (; tricky_pointer < 50000 ;) {
> dumptofile(trick.data)
> tricky_pointer += 16;
> }
Aside from memory management in java being internal to the virtual
machine as covered in other posts Java is a strongly typed language.
There is no notion of void * (pointers that point to anything) and the
current implementation ensures the pointer is either null or valid.
Even if you could the current implementation disallows any pointer
arithmetic at all! i.e no pointer++;
Also if the object your pointing at is destroyed your pointer will be
updated to null or you will generate an exception when you next use it
as per the bargabe collection policy.
--Matt