Re: d support in codeblocks

2010-03-29 Thread Matthias Pleh
Am 28.03.2010 23:54, schrieb Bernard Helyer: On 29/03/10 08:24, Matthias Pleh wrote: Hey all, as I already posted in D.ide newsgroup, I am working on an improvement for D support in the codeblocks IDE. Now I've made a patch and posted it in the codeblocks forum:

Re: DMDScript now under Boost license

2010-03-29 Thread Adam Ruppe
I think it would be pretty great if you could add functions, etc., to the scripting language with a simple one liner: mixin makeAccessibleFromScript!(scriptEngine, foo); Or something similar. The template there could mix in a wrapper function for whatever foo() happens to be, and register it

Re: DMDScript now under Boost license

2010-03-29 Thread Robert Clipsham
On 29/03/10 18:41, Adam Ruppe wrote: I think it would be pretty great if you could add functions, etc., to the scripting language with a simple one liner: mixin makeAccessibleFromScript!(scriptEngine, foo); You can do with with MiniD, LuaD, PyD, Monster, and possibly others to allow you to

Re: d support in codeblocks

2010-03-29 Thread Robert Jacques
On Sun, 28 Mar 2010 16:24:30 -0300, Matthias Pleh matthias.p...@gmx.at wrote: Hey all, as I already posted in D.ide newsgroup, I am working on an improvement for D support in the codeblocks IDE. Now I've made a patch and posted it in the codeblocks forum:

Re: DMDScript now under Boost license

2010-03-29 Thread Robert Clipsham
On 29/03/10 19:30, Adam D. Ruppe wrote: On Mon, Mar 29, 2010 at 06:49:35PM +0100, Robert Clipsham wrote: I haven't played with dmdscript, but I'd guess there's a simple way to expose D functions to it. It isn't terribly complex, but it is a bit wordy. The docs are here:

Re: DMDScript now under Boost license

2010-03-29 Thread Adam D. Ruppe
On Mon, Mar 29, 2010 at 07:45:39PM +0100, Robert Clipsham wrote: You could always write a nice wrapper function/template which automatically does all that guff for you :) If you do, I'm sure Walter wouldn't mind adding it into dmdscript providing you license it appropriately :) Yup, that's

Re: DMDScript now under Boost license

2010-03-29 Thread Robert Clipsham
On 29/03/10 20:07, Adam D. Ruppe wrote: On Mon, Mar 29, 2010 at 07:45:39PM +0100, Robert Clipsham wrote: You could always write a nice wrapper function/template which automatically does all that guff for you :) If you do, I'm sure Walter wouldn't mind adding it into dmdscript providing you

Re: d support in codeblocks

2010-03-29 Thread Matthias Pleh
Am 29.03.2010 18:51, schrieb Robert Jacques: On Sun, 28 Mar 2010 16:24:30 -0300, Matthias Pleh matthias.p...@gmx.at wrote: Hey all, as I already posted in D.ide newsgroup, I am working on an improvement for D support in the codeblocks IDE. Now I've made a patch and posted it in the codeblocks

Re: DMDScript now under Boost license

2010-03-29 Thread strtr
Walter Bright Wrote: strtr wrote: Walter Bright Wrote: http://www.digitalmars.com/dscript/index.html Would it be possible to have some sort of scripting as part of D? What did you have in mind? Scripting in de form of a dialect/subset of D in the std/language. I don't know enough

Re: DMDScript now under Boost license

2010-03-29 Thread Walter Bright
strtr wrote: Scripting in de form of a dialect/subset of D in the std/language. I don't know enough about scripting to say anything specific/useful. It's just that if scripting were part of D, I would have used it already where the possibilities mentioned by Robert Clipsham just look that much

Re: DMDScript now under Boost license

2010-03-29 Thread strtr
Walter Bright Wrote: strtr wrote: Scripting in de form of a dialect/subset of D in the std/language. I don't know enough about scripting to say anything specific/useful. It's just that if scripting were part of D, I would have used it already where the possibilities mentioned by Robert

Re: DMDScript now under Boost license

2010-03-29 Thread bearophile
Walter Bright: I thought about that a lot, but CTFE seems to fill that gap well enough. CTFE works at compile-time, while people add scripting languages like Python, JavaScript, Groovy, Jpython, Jruby, etc, to run-time C/C++/Java code for other purposes. For example games are often written in