February 02, 2003 D » Re: A third example use of C macros that has not been discussed | |||
|---|---|---|---|
| |||
...memcpy from the src memcpy( foo, bar, len ); (inlined if optimised for speed, either way... | |||
January 14, 2003 D » Another example of a use of C macros that has not been discussed | |||
|---|---|---|---|
| |||
...x[len >> 5] |= 0x80 << (24 - len % 32); - x[(((len + 65 + 511) >> 9) << 4) - 1] = len... | |||
December 01, 2002 D » Re: Stupid question | |||
|---|---|---|---|
| |||
...len;
len = out_string.length;
WriteFile(fd, // handle to file
out_string, // data buffer
len... | |||
December 01, 2002 D » Re: Stupid question | |||
|---|---|---|---|
| |||
...len; len = out_string.length; WriteFile(fd, // handle to file out_string, // data buffer len... | |||
November 11, 2002 D » Re: Slicing (new argument, I think) | |||
|---|---|---|---|
| |||
...its length, why not: a[n:len]; a[n#len]; // arguably better - kinda looks like... | |||
November 09, 2002 D » Re: Slicing | |||
|---|---|---|---|
| |||
...1) a[n..n+len] creates a slice of length 'len' much the same as... | |||
November 05, 2002 D » str2d.c: Utility that Converts D source file to a D string | |||
|---|---|---|---|
| |||
...str[1024];
int len;
int s;
fgets(str,sizeof(str),stdin);
len = strlen(str);
for... | |||
October 14, 2002 D » Re: array length question | |||
|---|---|---|---|
| |||
...same as void fn(int *a, int len) Effectively you cannot resize the array inside... | |||
October 14, 2002 D » Re: Array ownership - new contract type | |||
|---|---|---|---|
| |||
...in C++: void fn(int *a, int len); in D: void fn(in int[] a... | |||
October 05, 2002 D » Re: "inout" is wrong name | |||
|---|---|---|---|
| |||
...len=0; while (*s++) ++len; return len; // error... can't modify
parameter "s"
uint len... | |||
Copyright © 1999-2021 by the D Language Foundation