@(at) sign in import statemenq

25 views
Skip to first unread message

David Sokhakyan

unread,
Jan 18, 2023, 5:48:38 AM1/18/23
to Protocol Buffers
Hi All, Is there posabiliy to use @ sign in  import statement in proto file definition?
language is js, it just converts @ -> @ which is not allowed in js, 
example
 ...
import "test/@test/test.proto";
thanks

Marc Gravell

unread,
Jan 18, 2023, 8:12:56 AM1/18/23
to David Sokhakyan, Protocol Buffers
Probably a silly question but: did you try it and did it work? Note that the language here is probably not relevant, since this is primarily a file path - I guess reliable OS file system limitations is the biggest concern.

David Sokhakyan
Senior Software Engineer
www.questrade.com
QuestGlobal Armenia LLC
105/1 Teryan Street, Yerevan, Armenia, 009

​QuestGlobal Armenia LLC is an affiliated company of the Questrade Group of Companies.

​Questrade® is a registered trademark licensed to Questrade Financial Group Inc.


--
You received this message because you are subscribed to the Google Groups "Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to protobuf+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/protobuf/b71a1aff-6056-429b-b7f2-bbfdbc634a6en%40googlegroups.com.

David Sokhakyan

unread,
Jan 18, 2023, 9:01:46 AM1/18/23
to Protocol Buffers
I try but it didnt work :) 
compilation phase is working but compiled source gives error

var test_@test_pb = require(' test/@test/test_pb.js');
goog.object.extend(proto,  test_@test_pb  );

So  var test_@test_pb  is illegal in javascript
Reply all
Reply to author
Forward
0 new messages