.h -> D with version

Don Clugston dac at nospam.com.au
Tue Apr 4 06:58:43 PDT 2006


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.




More information about the Digitalmars-d-learn mailing list