Converting Fuse headers

Simen kjaeraas simen.kjaras at gmail.com
Tue Nov 9 15:55:24 PST 2010


Jesse Phillips <jessekphillips+D at gmail.com> wrote:

> Can you forward declare a reference like this in D? If not does it  
> matter what I define it to be?
>
> struct fuse {} // Since I'm really only passing pointers to this anyway.
>
> Sure hope this makes it work.

It's completely safe to define it like that. Just don't do 'new fuse()'
anywhere, as that would allocate the size of your empty struct. :p


> Yeah, thinking about it some, I don't know how functions affect the  
> structure, so I'll move the fields before the functions.

No changes in structure due to functions. It may be easier to read with
functions at the end, though.


-- 
Simen


More information about the Digitalmars-d-learn mailing list