digitalmars.D.learn - class type definition problem
- david (16/16) Aug 06 2006 class A{
- Karen Lanrap (11/13) Aug 06 2006 There are at least two ways already:
class A{ } main() { /+ A b; //<------- this is ok before A is declared as a int variable +/ int A; A b; // actually i want b declared as class A. but d sees it as variable int A; // even if D think this would cause by mistaken programming, can D provide one way for // us, like "class A b" to define b as Class A? } -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
Aug 06 2006
david wrote:can D provide one way for us, like "class A b" to define b as Class A?There are at least two ways already: 1) module mod; ... mod.A b; ... 2) ... .A b; ...
Aug 06 2006