January 12, 2011 Learn » Re: std.encoding Usage | |||
|---|---|---|---|
| |||
...4] buf; int len = encodingScheme.encode(ch, buf); buffer~=buf[0..len]; } ubyte[] encodedBuffer; string... | |||
January 06, 2011 General » Templates vs CTFE | |||
|---|---|---|---|
| |||
...private string _staticMap(size_t len)
{
string result;
if (len)
{
result ~= "pred!(A[0])";
for... | |||
January 05, 2011 General » Re: About some bugs | |||
|---|---|---|---|
| |||
...stats->tx_packets++;
stats->tx_bytes += skbn->len;
...
}
The bug here is that in some... | |||
January 05, 2011 General » Re: memoize (is this a fix for overloading?) | |||
|---|---|---|---|
| |||
...len]))
enum equalTuples = false;
else
enum equalTuples =
equalTuples!(len-1, T[1 .. len], T[len... | |||
January 05, 2011 General » Re: memoize (is this a fix for overloading?) | |||
|---|---|---|---|
| |||
...len]))
enum equalTuples = false;
else
enum equalTuples =
equalTuples!(len-1, T[1 .. len], T[len... | |||
January 03, 2011 General » Re: D without a GC | |||
|---|---|---|---|
| |||
...size_t len; void * saved_stack; int[len] * arr.2; int arr[len] [value-expr... | |||
January 03, 2011 Issues » [Issue 5348] Variable Length Arrays | |||
|---|---|---|---|
| |||
...ptr = cast(Foo*)alloca(len * Foo.sizeof); Foo[] arr = ptr[0 .. len];//that's all... | |||
January 01, 2011 General » '$' and opDollar | |||
|---|---|---|---|
| |||
...is AFAIK actually rewritten to the magic __len__ method for custom types. The equivalent of... | |||
December 25, 2010 General » Re: D vs C++ | |||
|---|---|---|---|
| |||
...in dictionary:
dictionary[word] = 1
print "Words:", len(dictionary)
psyco.bind(main)
main()
Bye,
bearophile | |||
December 24, 2010 Issues » [Issue 4705] Redesign of std.algorithm.max()/min() + mins()/maxs() | |||
|---|---|---|---|
| |||
...compared value is (in your case string len) unique, but there may be several original... | |||
Copyright © 1999-2021 by the D Language Foundation