Download Reference Manual
The Developer's Library for D
About Wiki Forums Source Search Contact

Ticket #1518 (new defect)

Opened 15 years ago

Last modified 14 years ago

D2.0/tango/sys/win32/Types.di: from char[] to Cutf8

Reported by: CLXX Assigned to: larsivi
Priority: major Milestone: 2.0
Component: Tango Version: D2.0 branch
Keywords: Cc:

Description

Index: Types.di =================================================================== --- Types.di (revision 4394) +++ Types.di (working copy) @@ -175,7 +175,7 @@

alias IID* REFIID;

// Cast a string literal to a ubyte*=PCHAR

-template _PCHAR( char[] a ){ +template _PCHAR( Cutf8 a ){

const PCHAR _PCHAR = cast(PCHAR)a.ptr;

}

Attachments

Types.patch (340 bytes) - added by CLXX on 03/08/09 22:14:28.

Change History

03/08/09 22:14:28 changed by CLXX

  • attachment Types.patch added.

03/09/09 08:40:47 changed by larsivi

  • owner changed from kris to schveiguy.

We probably need a bit more discussion around the exact aliases used here.

03/09/09 16:39:17 changed by schveiguy

  • status changed from new to assigned.

The aliases are ugly for a reason ;) It was Frank's idea because nobody in their right mind would use Cutf8 for anything, and when we want to change the alias later it will be easy to do a global search/replace.

But I'm open for discussion. There is continuous turmoil on the NG regarding aliasing string to immutable(char)[].

04/30/10 11:12:50 changed by schveiguy

  • status changed from assigned to new.
  • owner changed from schveiguy to larsivi.

I no longer am contributing to Tango, please assign to someone else.