24.1.7.37606-master37606

nettention

24.1한국어

개선

수정

추가

퇴역

참조

참조[1]

PIDL에서 네임 스페이스를 추가할 수 있도록 수정되었습니다.

네임 스페이스 없이 사용하는 방법

global Test 1000
{
    Foo([in] int x, [in] int id);
}

네임 스페이스를 사용하는 방법

global Test2::Test3 1100
{
    Foo([in] int x, [in] int id);
}
global Test4.Test5 1200
{
    Foo([in] int x, [in] int id);
}

참조[2]

Proud::String a = _PNT("I'm Proud!");
std::string b = a;
Proud::String c = b;

참조[3]

아래 코드는 이제 정상적으로 빌드되지 않습니다.

Proud::String str = _PNT("123");
fopen(str, "r");

대신 이렇게 하십시오.

fopen(str.c_str(), "r");

C++ 표준에서는 문자열 객체가 문자열 포인터에 대한 암묵적 캐스팅을 하는 것을 권장하지 않고 있습니다.

std.string에서 문자열 포인터를 얻으려면 c_str 함수를 호출해야 하는 것도 이 때문입니다.

24.2English

Improvement

Revision

Added Features

Deprecation

Reference

Reference[1]

Now, adding NAME SPACE at PIDL is allowed.

How to use without using NAME SPACE:

global Test 1000
{
    Foo([in] int x, [in] int id);
}

How to use NAME SPACE:

global Test2::Test3 1100
{
    Foo([in] int x, [in] int id);
}
global Test4.Test5 1200
{
    Foo([in] int x, [in] int id);
}

Reference[2]

Proud::String a = _PNT("I'm Proud!");
std::string b = a;
Proud::String c = b;

Reference[3]

The following code below cannot be built normally any more.

Proud::String str = _PNT("123");
fopen(str, "r");

Instead, follow the following instruction:

fopen(str.c_str(), "r");

The C++ Standard doesn’t encourage a string object to implicit cast the string pointer.


That’s why you got to call c_str function in order to get string pointer at std.string.

24.3日本語

改善

修正

追加

退役

參照

參照[1]

PIDLでネームスペースを追加できるように修正しました。

ネームスペースなしの使い方

global Test 1000
{
    Foo([in] int x, [in] int id);
}

ネームスペースありの使い方

global Test2::Test3 1100
{
    Foo([in] int x, [in] int id);
}
global Test4.Test5 1200
{
    Foo([in] int x, [in] int id);
}

參照[2]

Proud::String a = _PNT("I'm Proud!");
std::string b = a;
Proud::String c = b;

參照[3]

下のコードはもう正常的にビルドできません。

Proud::String str = _PNT("123");
fopen(str, "r");

代わりにこのようにしてください。

fopen(str.c_str(), "r");

C++ 標準ではstring objectとstring pointerの暗黙的キャストを勧めません。

std.stringでstring pointerを得るためにc_str()を呼ぶのもこんは訳です。

24.4中國語

改善

修复

添加

退役

参照

参照[1]

在PIDL中可添加命名空间的修改.

无命名空间的使用方法

global Test 1000
{
    Foo([in] int x, [in] int id);
}

使用命名空间的方法

global Test2::Test3 1100
{
    Foo([in] int x, [in] int id);
}
global Test4.Test5 1200
{
    Foo([in] int x, [in] int id);
}

參照[2]

Proud::String a = _PNT("I'm Proud!");
std::string b = a;
Proud::String c = b;

参照[3]

以下代码无法进行正常的调试.

Proud::String str = _PNT("123");
fopen(str, "r");

由以下代码来替代

fopen(str.c_str(), "r");

C++标准中不推荐字符串对象隐士转换为字符串指针.

在std.string中想要获得字符串,调用c_str函数也是这个原因.