www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Long has no effect in expression (0)

reply Sam Hu <samhu.samhu nospam.com> writes:
Given below code segment under DMD1.050 :

class COM : OS 
{   
    .......   
   //public static const int OLEWHICHMK_OBJREL = 2;   
   public static const int S_FALSE = 1;   
   public static const int S_OK = 0 ; //Error ocurred here!!
}  

Got the subjected error message.What does this mean?

Thanks for your help in advance.

Regards,
Sam
Nov 01 2009
parent reply bearophile <bearophileHUGS lycos.com> writes:
Sam Hu Wrote:

It seems the error is not located in the code you have shown:
http://codepad.org/ti7SaAtA

So I think you have to show more code.
Try to create a reduced case that shows the same error.

Bye,
bearophile
Nov 02 2009
parent "Lars T. Kyllingstad" <public kyllingen.NOSPAMnet> writes:
bearophile wrote:
 Sam Hu Wrote:
 
 It seems the error is not located in the code you have shown:
 http://codepad.org/ti7SaAtA
 
 So I think you have to show more code.
 Try to create a reduced case that shows the same error.
You won't necessarily be able to reproduce the error with codepad.org anyway, since it's running DMD 1.026, while Sam says he is using DMD 1.050. -Lars
Nov 02 2009