Re: Scriptlike v0.8.0
On 06/22/2015 05:09 AM, "Per =?UTF-8?B?Tm9yZGzDtnci?= " wrote: On Monday, 22 June 2015 at 09:08:45 UTC, Per Nordlöw wrote: Something like this userInput(T)(string message, T x); Correction, should be userInput(T)(string message, ref T x) Good idea. Now added, and tagged v0.8.1: https://github.com/Abscissa/scriptlike/blob/master/CHANGELOG.md
Re: Scriptlike v0.8.0
On Monday, 22 June 2015 at 09:08:45 UTC, Per Nordlöw wrote: Something like this userInput(T)(string message, T x); Correction, should be userInput(T)(string message, ref T x)
Re: Scriptlike v0.8.0
On Sunday, 14 June 2015 at 01:28:18 UTC, Nick Sabalausky wrote: A bunch of new updates to Scriptlike: A library to aid in writing script-like programs in D. You should add an overload to http://semitwist.com/scriptlike/scriptlike/interact/userInput.html that takes a reference to an existing variable like this int x; Something like this userInput(T)(string message, T x); This removes the need for specifying the type of `x` in the call to `userInput` if x is already defined.
Re: Scriptlike v0.8.0
On Sunday, 14 June 2015 at 01:28:18 UTC, Nick Sabalausky wrote: A bunch of new updates to Scriptlike: A library to aid in writing script-like programs in D. Home: https://github.com/Abscissa/scriptlike Dub: http://code.dlang.org/packages/scriptlike Full changelog: https://github.com/Abscissa/scriptlike/blob/master/CHANGELOG.md I've begun utilizing this in scripts I'm building, to help get things done faster and more consistently. I've combined it with dub because dub will grab the build off the web, but it also makes scripts a little "heavier." I really like having the bulk of Phobos imported. I'm very fond of the new std.process, so much better than powershell