Why no acess to other structs in classes?
Mariano
rotoshi at yahoo.com
Mon Nov 6 04:36:36 PST 2006
== Quote from Karen Lanrap (karen at digitaldaemon.com)'s article
> class C
> {
> struct S
> {
> uint data;
> }
> S s;
> struct T
> {
> uint f()
> {
> return s.data;
> // this for s needs to be type C not type T *
> }
> }
> }
> void main(){}
This seams like really bad practice. A function inside a struct returning something
from outside itself?
M.
More information about the Digitalmars-d-learn
mailing list