March 20, 2007 General » Re: Writing Bug-Free C/D Code | |||
|---|---|---|---|
| |||
...hope it would.
------------
import std.stdio;
typedef float age;
typedef float len;
void main()
{
age... | |||
March 20, 2007 General » Re: Writing Bug-Free C/D Code | |||
|---|---|---|---|
| |||
Maybe not a typedef for each purpose, but more generally, a type for each concept... | |||
March 19, 2007 General » Re: Writing Bug-Free C/D Code | |||
|---|---|---|---|
| |||
...new position.
Idealy I would do
typedef int WIDTH;
typedef int POSITION;
POSITION.invariant {
assert... | |||
March 19, 2007 General » Re: Writing Bug-Free C/D Code | |||
|---|---|---|---|
| |||
...typedef for each purpose? So a point struct would look like this for you: typedef... | |||
March 19, 2007 General » Re: Writing Bug-Free C/D Code | |||
|---|---|---|---|
| |||
...take the idea a step further.
typedef int ROWPOS;
typedef int COLPOS;
foo
{
ROWPOS rowPos... | |||
March 16, 2007 General » Re: Extended Type Design. | |||
|---|---|---|---|
| |||
...some experience with that: the alias and typedef declarations. But that experience makes me wary... | |||
March 14, 2007 Issues » [Issue 1062] New: Cannot catch typedef'd class | |||
|---|---|---|---|
| |||
...bug.cgi?id=1062
Summary: Cannot catch typedef'd class
Product: D
Version: 1.009... | |||
March 13, 2007 c++.stlsoft » Re: winstl::findfile_sequence does not compile with Visual Studio 2005 | |||
|---|---|---|---|
| |||
...typename T>
class basic_findfile_sequence
{
public:
typedef size_t size_type;
public:
size_type... | |||
March 11, 2007 Learn » question with c -header file | |||
|---|---|---|---|
| |||
...a problem with the struct, but the typedef.
struct _CONNECTION {
long Socket; // Client long.
unsigned... | |||
March 10, 2007 GDC » [Issue 983] constant cfstrings for Darwin | |||
|---|---|---|---|
| |||
...opaque CFStringRef type, which could be a "typedef void*" or use the struct that C... | |||
Copyright © 1999-2021 by the D Language Foundation