D language as script through JVM
Paulo Pinto
pjmlp at progtools.org
Thu Aug 16 04:47:54 PDT 2012
On Thursday, 16 August 2012 at 09:23:18 UTC, Thiez wrote:
> On Thursday, 16 August 2012 at 00:48:44 UTC, Alexey Egorov
> wrote:
>> I think there is no problems to make, for example, compiler
>> for Java Virtual Machine.
>
> Think again. Like Java, the JVM does not have pointer
> arithmetic, which means there is no straightforward way to
> write a D-to-JVM-bytecode compiler.
>
Actually you can do it, if you make use of sun.misc.Unsafe
package.
http://www.docjar.com/docs/api/sun/misc/Unsafe.html
--
Paulo
More information about the Digitalmars-d
mailing list