Re: Programming with windows api (windows.h)

2012-12-20 Thread monarch_dodra
On Monday, 17 December 2012 at 17:24:40 UTC, Andrej Mitrovic wrote: On 12/17/12, monarch_dodra monarchdo...@gmail.com wrote: Am I doing it wrong, or are is the amount of ported windows interface currently limited... std.c.windows.windows is a very thin layer around the API. There are better

Cantor tuple function, BigInt, and integer overflow

2012-12-20 Thread Joseph Rushton Wakeling
Hello all, I've been playing around trying to implement the Cantor tuple function (see attached code), which is essentially a way to map a sequence x1, x2, ..., xN of non-negative integers to a single unique number. See: https://en.wikipedia.org/wiki/Pairing_function#Cantor_pairing_function

Re: Cantor tuple function, BigInt, and integer overflow

2012-12-20 Thread H. S. Teoh
On Thu, Dec 20, 2012 at 07:46:39PM +0100, Joseph Rushton Wakeling wrote: Hello all, I've been playing around trying to implement the Cantor tuple function (see attached code), which is essentially a way to map a sequence x1, x2, ..., xN of non-negative integers to a single unique number.

Re: static code generation

2012-12-20 Thread js.mdnq
On Thursday, 20 December 2012 at 04:17:48 UTC, r_m_r wrote: On 12/18/2012 04:42 AM, js.mdnq wrote: It looks like the approach 2 does what I'm looking for pretty nicely except that, If I'm not mistaken the user struct will error out when trying to access members from the master. Another

Re: static code generation

2012-12-20 Thread r_m_r
On 12/21/2012 07:18 AM, js.mdnq wrote: struct S_A { int x; int y; void func(); void funcA(); } struct S_B { int x; int z; void func(); void funcB(); } then GenUnion(S_A, S_B) will produce a struct like S_AB { int x; int y; int z; //did u miss this? ;) void func(); void