mercedes das xentry full verison rapidshare q=Ijn.I)

2010-08-24 Thread ecm2001 winols cpwin rapidshare torrent
We can crack or emulate any protection type: Dongle, Hardlock, Hasp, Serial, Password, Hasp4, Flexlm, Sentinel, Wibu, Eutron Smartkey, Hasphl, Proteq, All the Protections!! email = yshows...@gmail.com email = yshowsoft at gmail.com NEW UPDATES 2010 Artpro 9.5r4 with license (minimal of 2

Re: BitArray contracts

2010-08-24 Thread Steven Schveighoffer
On Mon, 23 Aug 2010 22:49:14 -0400, bearophile bearophileh...@lycos.com wrote: This a part of std.bitmanip.BitArray: void init(void[] v, size_t numbits) in { assert(numbits = v.length * 8); assert((v.length 3) == 0); } body { ptr =

Re: Can't get D calling C to build.

2010-08-24 Thread Bob Cowdery
On 23/08/2010 23:04, bearophile wrote: Andrej Mitrovic: I haven't read the specifics of your problem yet, but have you tried using the newer TDM port of MinGW? The MinGW binaries are still using an older port of GCC, but the TDM version is much newer, so it might be worth trying it out.

assumeSorted?

2010-08-24 Thread Steven Schveighoffer
What happened to assumeSorted in 2.048? When trying to do a find on an assumeSorted range, it fails: dcollections/HashSet.d(28): Error: template std.algorithm.find(alias pred = a == b,R,E) if (isInputRange!(R) is(typeof(binaryFun!(pred)(haystack.front,needle)) : bool)) does not match

Re: BitArray contracts

2010-08-24 Thread bearophile
Steven Schveighoffer: If bitarray is not a template, then it's compiled in release mode inside phobos. The in contract is probably not compiled in. I see, it's the problem discussed recently, with the proposal of the two phobos libs, one compiled with -release and one without, that the

Re: Dynamic method example in TDPL

2010-08-24 Thread Philippe Sigaud
Sorry to resurrect an old (4 days) thread. I modified the example a bit, getting rid of '...' in DynMethod and modifying opDispatch as Stanislav suggested. It works, and it's fun to play with: module dynamicmethods; import std.stdio; import std.conv; import std.variant; alias Variant

TDPL: Operator Overloading

2010-08-24 Thread Andrej Mitrovic
This is a shortened version of some operator overloading code from page 372 (although some code is from pages before it), sorry for the long post: module binary_ops; import std.stdio : writeln; import std.traits; import std.exception; unittest { auto foo = CheckedInt!(int)(5); auto bar

Re: TDPL: Operator Overloading

2010-08-24 Thread Yao G.
On Tue, 24 Aug 2010 17:19:25 -0500, Andrej Mitrovic andrej.mitrov...@whatever.com wrote: [snip] struct CheckedInt(N) if (isIntegral!N) { private N value; this(N value) { this.value = value; } @property auto Value() { return value; } //

Re: TDPL: Operator Overloading

2010-08-24 Thread Andrej Mitrovic
Yao G. Wrote: That's a bug. The return value should be CheckedInt(result); I'll add that to the errata. Yao G. Wrote: http://www.digitalmars.com/d/2.0/mixin.html I wasn't refering to the mixin, but the call to CheckedInt(). mixin compiles value ~ op ~ rhs.value, which in this case

Re: TDPL: Operator Overloading

2010-08-24 Thread Yao G.
On Tue, 24 Aug 2010 17:43:49 -0500, Andrej Mitrovic andrej.mitrov...@whatever.com wrote: I wasn't refering to the mixin, but the call to CheckedInt(). mixin compiles value ~ op ~ rhs.value, which in this case evaluates to 5 + 5 and the whole call becomes CheckedInt(10). Sorry. My

Re: TDPL: Operator Overloading

2010-08-24 Thread Ali Çehreli
Andrej Mitrovic wrote: Yao G. Wrote: That's a bug. The return value should be CheckedInt(result); I'll add that to the errata. Yao G. Wrote: http://www.digitalmars.com/d/2.0/mixin.html I wasn't refering to the mixin, but the call to CheckedInt(). mixin compiles value ~ op ~ rhs.value,

Re: TDPL: Operator Overloading

2010-08-24 Thread bearophile
Ali Çehreli: It is the same in C++: the name of the template is equivalent to the current instantiation of the template. ... It seems to be the same in D. I don't know whether this is intended, or just a left over from the C++ parts of dmd. (I assume dmd shares code with the Digital Mars