[Info-vax] OpenVMS Development Annoyances

Arne Vajhøj arne at vajhoej.dk
Sun Apr 7 14:57:58 EDT 2019


On 4/7/2019 10:25 AM, Richard Levitte wrote:
> Den söndag 7 april 2019 kl. 15:10:10 UTC+2 skrev Arne Vajhøj:
>> I will recommend the primitive solution:
>>
>> std::string s;
>> vms::string_descriptor = vms::get_descrptor(s);
> 
> I agree with having it a separate class in the vms namespace, but why make it so primitive as to have to use a static method to copy a string into a descriptor?

It was actually intended to be a function in a namespace not a
static method in a class.

> This should suffice:
> 
> vms::string_descriptor = s;

Yes.

But I don't like too much implicit happening - I like more explicit code.

Arne



More information about the Info-vax mailing list