digitalmars.D.learn - .h -> D with version
- nobody (11/11) Apr 04 2006 Hello,
- Don Clugston (3/20) Apr 04 2006 Correct. A simple fix would be to change 'version' to 'Version', since
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
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