Re: Python eval() equivalent in Dlang working in Runtime?

2020-05-01 Thread jmh530 via Digitalmars-d-learn
On Friday, 1 May 2020 at 15:42:54 UTC, Baby Beaker wrote: There is a Python eval() equivalent in Dlang working in Runtime? You might find arsd's script.d interesting [1], but it's more like a blend between D and javascript. [1]https://github.com/adamdruppe/arsd/blob

Re: Python eval() equivalent in Dlang working in Runtime?

2020-05-01 Thread H. S. Teoh via Digitalmars-d-learn
On Fri, May 01, 2020 at 06:37:41PM +, tsbockman via Digitalmars-d-learn wrote: > On Friday, 1 May 2020 at 18:07:54 UTC, H. S. Teoh wrote: [...] > > Actually, if you're willing to ship a working copy of dmd with your > > program, you *could* compile D code on-the-fly and dynamically load > >

Re: Python eval() equivalent in Dlang working in Runtime?

2020-05-01 Thread tsbockman via Digitalmars-d-learn
On Friday, 1 May 2020 at 18:07:54 UTC, H. S. Teoh wrote: On Fri, May 01, 2020 at 05:44:27PM +, tsbockman via Digitalmars-d-learn wrote: On Friday, 1 May 2020 at 15:42:54 UTC, Baby Beaker wrote: > There is a Python eval() equivalent in Dlang working in > Runtime? No, and there

Re: Python eval() equivalent in Dlang working in Runtime?

2020-05-01 Thread H. S. Teoh via Digitalmars-d-learn
On Fri, May 01, 2020 at 05:44:27PM +, tsbockman via Digitalmars-d-learn wrote: > On Friday, 1 May 2020 at 15:42:54 UTC, Baby Beaker wrote: > > There is a Python eval() equivalent in Dlang working in Runtime? > > No, and there almost certainly never will be due to fundamenta

Re: Python eval() equivalent in Dlang working in Runtime?

2020-05-01 Thread tsbockman via Digitalmars-d-learn
On Friday, 1 May 2020 at 15:42:54 UTC, Baby Beaker wrote: There is a Python eval() equivalent in Dlang working in Runtime? No, and there almost certainly never will be due to fundamental differences between the languages. Depending on your goal, the closest alternatives are using the string

Python eval() equivalent in Dlang working in Runtime?

2020-05-01 Thread Baby Beaker via Digitalmars-d-learn
There is a Python eval() equivalent in Dlang working in Runtime?