www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - .h -> D with version

reply nobody <nobody_member pathlink.com> writes:
Hello,

i try to convert this to D, it's from an header file:

sword OCITypeVTSelect( OCIEnv *env, OCIError *err,
oratext *schema_name, ub4 s_n_length,
oratext *type_name, ub4 t_n_length,
oratext **user_version, ub4 *u_v_length,
ub2 *version );

}


I get the error message with dmd -c
found 'version' when expecting ')'

I believe the word version is a key word, so dmd didn't like that.
Apr 04 2006
parent Don Clugston <dac nospam.com.au> writes:
nobody wrote:
 Hello,
 
 i try to convert this to D, it's from an header file:
 
 sword OCITypeVTSelect( OCIEnv *env, OCIError *err,
 oratext *schema_name, ub4 s_n_length,
 oratext *type_name, ub4 t_n_length,
 oratext **user_version, ub4 *u_v_length,
 ub2 *version );
 
 }
 
 
 I get the error message with dmd -c
 found 'version' when expecting ')'
 
 I believe the word version is a key word, so dmd didn't like that.

Correct. A simple fix would be to change 'version' to 'Version', since no keywords contain upper case letters.
Apr 04 2006