Re: no-arg constructor for structs (again)

2012-09-20 Thread Felix Hufnagel
On Thursday, 20 September 2012 at 00:14:04 UTC, Jonathan M Davis wrote: On Thursday, September 20, 2012 00:12:04 Felix Hufnagel wrote: isn't it even worse? import std.stdio; struct S { int i; this(void* p = null){this.i = 5;} } void main() { //S l(); //gives a linker error auto k = S

Re: no-arg constructor for structs (again)

2012-09-19 Thread Felix Hufnagel
isn't it even worse? import std.stdio; struct S { int i; this(void* p = null){this.i = 5;} } void main() { //S l(); //gives a linker error auto k = S(); writeln(k.i); //prints 0 }

Re: New hash API: namespace

2012-06-25 Thread Felix Hufnagel
+1 for hashes into std.hash and cryptographic primitives into std.crypto and we should have a std.net (std.uri, std.socket, std.socketstream , std.net.curl, ...), std.io. for (Outbuffer, file, ) and probably std.database or something like that for (csv, json, xml, ...) ... Am

Re: JPG and PNG decoder

2012-06-21 Thread Felix Hufnagel
it's not that hard to write a baseline jpeg encoder. it's not harder than decoding. there are many tutorials and examples online. Am 17.06.2012, 09:55 Uhr, schrieb cal callumena...@gmail.com: On Sunday, 17 June 2012 at 07:07:35 UTC, Philippe Sigaud wrote: Still, I'm interested in writing

Re: Sharing your openGL Shader struct

2012-04-20 Thread Felix Hufnagel
Dav1d has one : https://bitbucket.org/dav1d/glamour/overview what we have in Derp: https://github.com/svenstaro/derp/blob/master/derp/graphics/shader.d

Re: Proposal: __traits(code, ...) and/or .codeof

2012-03-22 Thread Felix Hufnagel
in addition to .codeof, let's think about .astof returning an abstract syntax tree.

Re: unittest ddoc.

2012-01-30 Thread Felix Hufnagel
+1