Is D a good choice for embedding python/octave/julia

Laeeth Isharc via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue Mar 15 01:46:21 PDT 2016


On Tuesday, 15 March 2016 at 05:56:36 UTC, Ellery Newcomer wrote:
> On 03/13/2016 02:36 PM, Laeeth Isharc wrote:
>>
>> InterpContext context = new InterpContext();
>>
>>      context.py_stmts(outdent("
>>          import numpy
>>          a = numpy.eye(2, dtype='complex128')
>>      "));
>>
>>      context.a.to_d!(Complex!double[][] )();
>>
>>
>>
>
> nitpicking, but the outdent is unnecessary, py_stmts calls it.
>
> hm. maybe that should be documented..

I was in a hurry so just copy and pasted from the unit test...  I 
never do that myself.



More information about the Digitalmars-d-learn mailing list