Re: Moving from Python to D

2015-05-08 Thread Russel Winder via Digitalmars-d-learn
On Fri, 2015-05-08 at 03:24 +, avarisclari via Digitalmars-d-learn wrote: > Hello, > > Sorry to bother you with something trivial, but I am having > trouble translating a block of code I wrote in Python over to D. > Everything else I've figured out so far. Could someone help me > understand

Re: Moving from Python to D

2015-05-08 Thread Chris via Digitalmars-d-learn
On Friday, 8 May 2015 at 14:13:43 UTC, Chris wrote: "Moving from Python to D" always a good idea ;-) You might be interested in this: http://wiki.dlang.org/Programming_in_D_for_Python_Programmers http://d.readthedocs.org/en/latest/examples.html#plotting-with-matplotlib-python

Re: Moving from Python to D

2015-05-08 Thread Chris via Digitalmars-d-learn
"Moving from Python to D" always a good idea ;-)

Re: Moving from Python to D

2015-05-08 Thread avarisclari via Digitalmars-d-learn
On Friday, 8 May 2015 at 04:08:03 UTC, Nick Sabalausky wrote: On 05/08/2015 12:06 AM, Nick Sabalausky wrote: On 05/07/2015 11:24 PM, avarisclari wrote: scene = scenes["title"] It looks like scenes is a dictionary that stores dictionaries of strings? If so, then in D, scenes would be declar

Re: Moving from Python to D

2015-05-07 Thread Nick Sabalausky via Digitalmars-d-learn
On 05/08/2015 12:06 AM, Nick Sabalausky wrote: On 05/07/2015 11:24 PM, avarisclari wrote: scene = scenes["title"] It looks like scenes is a dictionary that stores dictionaries of strings? If so, then in D, scenes would be declared like this: string[string][string] scenes; Then the above lin

Re: Moving from Python to D

2015-05-07 Thread Nick Sabalausky via Digitalmars-d-learn
I'm not really sure exactly what parts are the issue, but I'll point out what I can: On 05/07/2015 11:24 PM, avarisclari wrote: Hello, Sorry to bother you with something trivial, but I am having trouble translating a block of code I wrote in Python over to D. Everything else I've figured out s

Moving from Python to D

2015-05-07 Thread avarisclari via Digitalmars-d-learn
Hello, Sorry to bother you with something trivial, but I am having trouble translating a block of code I wrote in Python over to D. Everything else I've figured out so far. Could someone help me understand how to get this right? Here's the python: scene = scenes["title"] while 1 == 1: