How to use dproto for removing and element from a repeated field

Sudhi sudheendra.malli at
Wed Feb 6 10:07:06 UTC 2019


I have been using dproto to work with protocol buffers. I have 
below proto structure

message Person
     required string name = 1;
     required string id = 2;
     repeated string emailId = 3;

Where a person can have multiple email ids.

I could add the email id to person using below code

person.emailId ~= "new-email";

However if i want to delete a email id from a person strucure, 
how would i do that.


More information about the Digitalmars-d-learn mailing list