When porting C headers which include function declarations with
using char* types. Is it best to use const char* or const(char)*
as the type in the D declaration?
On Sun, Dec 22, 2013 at 12:47:45AM +, Gary Willoughby wrote:
> When porting C headers which include function declarations with
> using char* types. Is it best to use const char* or const(char)*
> as the type in the D declaration?
Doesn't really matter: both work exactly the same way.
I kind
22.12.2013 07:47, Gary Willoughby пишет:
When porting C headers which include function declarations with using
char* types. Is it best to use const char* or const(char)* as the type
in the D declaration?
C vs D
const char* == const(char)*
const char const* == const char*
On Sunday, 22 December 2013 at 04:06:05 UTC, Alexandr Druzhinin
wrote:
22.12.2013 07:47, Gary Willoughby пишет:
When porting C headers which include function declarations
with using
char* types. Is it best to use const char* or const(char)* as
the type
in the D declaration?
C vs D
const char*
On Sunday, 22 December 2013 at 15:49:43 UTC, Gary Willoughby
wrote:
Thanks, that makes sense. But how would i port this parameter:
and these:
CONST84 char **tablePtr = ?
CONST84 char ***argvPtr = ?
Am 22.12.2013 17:02, schrieb Gary Willoughby:
On Sunday, 22 December 2013 at 15:49:43 UTC, Gary Willoughby wrote:
Thanks, that makes sense. But how would i port this parameter:
and these:
CONST84 char **tablePtr = ?
CONST84 char ***argvPtr = ?
In C/C++ the const always applies to whatever
On Sunday, 22 December 2013 at 16:45:15 UTC, Benjamin Thaut wrote:
Am 22.12.2013 17:02, schrieb Gary Willoughby:
On Sunday, 22 December 2013 at 15:49:43 UTC, Gary Willoughby
wrote:
Thanks, that makes sense. But how would i port this parameter:
and these:
CONST84 char **tablePtr = ?
CONST84
Am 22.12.2013 18:39, schrieb Gary Willoughby:
Ah right, so:
struct Tcl_Obj * CONST * objv
would be:
const(Tcl_Obj*)* objv or const(Tcl_Obj*)[] objv
Yes
On Sunday, 22 December 2013 at 18:28:43 UTC, Benjamin Thaut wrote:
Am 22.12.2013 18:39, schrieb Gary Willoughby:
Ah right, so:
struct Tcl_Obj * CONST * objv
would be:
const(Tcl_Obj*)* objv or const(Tcl_Obj*)[] objv
Yes
Great thanks! I thought i had a pretty good handle on C but
porting
Am 22.12.2013 20:34, schrieb Gary Willoughby:
On Sunday, 22 December 2013 at 18:28:43 UTC, Benjamin Thaut wrote:
Am 22.12.2013 18:39, schrieb Gary Willoughby:
Ah right, so:
struct Tcl_Obj * CONST * objv
would be:
const(Tcl_Obj*)* objv or const(Tcl_Obj*)[] objv
Yes
Great thanks! I thoug
22.12.2013 11:06, Alexandr Druzhinin пишет:
22.12.2013 07:47, Gary Willoughby пишет:
When porting C headers which include function declarations with using
char* types. Is it best to use const char* or const(char)* as the type
in the D declaration?
C vs D
const char* == const(char)*
const char c
11 matches
Mail list logo