On Monday, 14 January 2013 at 06:26:33 UTC, 1100110 wrote:
On 01/13/2013 11:35 PM, 1100110 wrote:
Ok, I wish to create a standard timing system so that I can
measure ~how
long each function takes to execute.
I wish to be able to place at the start of a function
version(Time) mixin TimeExecutio
I thought template itself should compile but its statement-like
instantiation should not.
By the way, if all you want is to split out some generic
statement block without using dirty string mixins, template
functions with alias parameters may do.
I.e. http://dpaste.1azy.net/68ad8133
Don't kn
On Tuesday, 15 January 2013 at 11:19:50 UTC, mist wrote:
I thought template itself should compile but its statement-like
instantiation should not.
The template shouldn't compile: the D grammar says that mixin
templates inject declarations only. Hence the text of the error.
By the way, if all
On Monday, 14 January 2013 at 21:00:12 UTC, Simen Kjaeraas wrote:
alias foo = extern(System) void function();
Gives me an error about expecting basic type, not extern.
extern(System) alias void function() foo;
On 2013-04-15 13:01, Mike Parker wrote:
On Monday, 14 January 2013 at 21:00:12 UTC, Simen Kjaeraas wrote:
alias foo = extern(System) void function();
Gives me an error about expecting basic type, not extern.
extern(System) alias void function() foo;
But that's the old syntax, with which o
On Thursday, 10 January 2013 at 17:36:15 UTC, Raphaël Jakse wrote:
Le 10/01/2013 10:23, monarch_dodra a écrit :
On Thursday, 10 January 2013 at 03:29:21 UTC, Peter Summerland
wrote:
The only thing I'd want to be able to do is:
//
foreach ( ; 0 .. 5)
{
writeln("hello");
}
//
If I d
Le 15/01/2013 19:41, Ary Borenszweig a écrit :
On Thursday, 10 January 2013 at 17:36:15 UTC, Raphaël Jakse wrote:
Le 10/01/2013 10:23, monarch_dodra a écrit :
On Thursday, 10 January 2013 at 03:29:21 UTC, Peter Summerland wrote:
The only thing I'd want to be able to do is:
//
foreach ( ; 0
On Sun, 13 Jan 2013 15:01:30 +0100
"Tomas" wrote:
> Hey, guys.
>
> I need to get all running processes list, and kill one. (example:
> Find all processes and if skype.exe is running, kill it.)
Sounds like a fantastic tool! I'd love to see it when it's done! I
might actually start using the PC
> ---
> import std.stdio;
> import std.process;
>
> //assuming we want to kill "htop"
> void main() {
> killProcess("htop");
> }
>
> void killProcess(string n){
> version(linux) {
> auto processNumber = shell("pgrep "~ n);
> writeln(n ~" process number is: "~processNumber)
When using etc.c.sqlite3 i get the following errors.
usr/include/dmd/phobos/etc/c/sqlite3.d:(.text._Dmain+0x98): undefined
reference to `sqlite3_open'
/usr/include/dmd/phobos/etc/c/sqlite3.d:(.text._Dmain+0xa7): undefined
reference to `sqlite3_errmsg'
/usr/include/dmd/phobos/etc/c/sqlite3.d:(.tex
You might have to add -L-lsqlite3 to your dmd command line, to
link in the library.
May also be necessary to install the sqlite library, e.g. "yum
install sqlite-devel" on red hat linuxes.
On 2013-01-15 22:02, Adam D. Ruppe wrote:
> You might have to add -L-lsqlite3 to your dmd command line, to link in
> the library.
>
> May also be necessary to install the sqlite library, e.g. "yum install
> sqlite-devel" on red hat linuxes.
Thanks, I just added it to my /etc/dmd.conf
--
Join m
On Sunday, 13 January 2013 at 16:39:22 UTC, bearophile wrote:
Maxim Fomin:
dmd allows to call static functions on instance.
I think that's a D design mistake (and I think Jonathan Davis
agrees with me), but Walter prefers the current behavour.
I'll have to disagree and it should remain an
On Monday, 14 January 2013 at 22:24:22 UTC, Joseph Rushton
Wakeling wrote:
Hello all,
One of the claims made for pseudo-random number generation in D
is that rndGen (default RNG) is thread-safe, that is, each
instance is unique to its thread and is seeded with
unpredictableSeed, which should
On Tuesday, 15 January 2013 at 22:03:24 UTC, Era Scarecrow wrote:
On Sunday, 13 January 2013 at 16:39:22 UTC, bearophile wrote:
Maxim Fomin:
dmd allows to call static functions on instance.
I think that's a D design mistake (and I think Jonathan Davis
agrees with me), but Walter prefers the
Hello,
When compiling next code to 64-bit.
app.d
import std.stdio;
void main()
{
ubyte u1 = cast(byte)-1;
byte u2 = cast(short)-1;
uint u3 = cast(int)-1;
int u4 = cast(long)-1;
writefln("%d", u1);
writefln("%d", u2);
writefln("%d", u3)
16 matches
Mail list logo