From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29438 invoked by alias); 23 Oct 2014 04:41:47 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 19266 Received: (qmail 14218 invoked from network); 23 Oct 2014 04:41:45 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 X-CMAE-Score: 0 X-CMAE-Analysis: v=2.1 cv=R6+0wmVS c=1 sm=1 tr=0 a=FT8er97JFeGWzr5TCOCO5w==:117 a=FT8er97JFeGWzr5TCOCO5w==:17 a=VRfkd_uakS0A:10 a=kj9zAlcOel0A:10 a=q2GGsy2AAAAA:8 a=oR5dmqMzAAAA:8 a=-9mUelKeXuEA:10 a=f8I_uIS1uUcv6uKAl4QA:9 a=CjuIK1q_8ugA:10 From: Bart Schaefer Message-id: <141022214120.ZM18075@torch.brasslantern.com> Date: Wed, 22 Oct 2014 21:41:20 -0700 In-reply-to: <54486EE9.8060101@eastlink.ca> Comments: In reply to Ray Andrews "c++ comments" (Oct 22, 7:58pm) References: <54397CC0.9070206@eastlink.ca> <141011131053.ZM28143@torch.brasslantern.com> <5439A54A.9060304@eastlink.ca> <141011150111.ZM28417@torch.brasslantern.com> <5439CB82.3070401@eastlink.ca> <87h9z7dc91.fsf@lwm.klanderman.net> <543C4C85.2060807@eastlink.ca> <54486EE9.8060101@eastlink.ca> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: zsh-users@zsh.org Subject: Re: c++ comments MIME-version: 1.0 Content-type: text/plain; charset=us-ascii On Oct 22, 7:58pm, Ray Andrews wrote: } } How can I legalize c++ comments? Or would that be a deep blasphemy? Zsh historically has been built with compilers that do not support c++ comment syntax. I'm not rabidly opposed to it, but tend to think we should continue to avoid it in the zsh sources. The foregoing assumes I correctly understand what "legalize" means to you, and that the zsh sources are in fact what you're talking about. } As it is, well nuts, you'd think it would give me a msg: "No c++ } comments permitted, sinner" but instead it gives me msg. about static } declarations and such ;-) You mostly lost me here. If the compiler doesn't handle c++ syntax, it's not going to be able to tell that a c++ comment is what confused it; it's just going to cough up a syntax error and possibly some other errors if it tries to keep on parsing. Also, zsh's build process depends on being able to recognize some comment markers and use that information to extract declarations into automatically-generated header files, so even if the compiler did understand c++ comments you could get into trouble if you changed the wrong existing comment into that syntax. That's probably not what you are doing anyway. As a final note, you should direct questions about the zsh internals to the zsh-workers list instead of to zsh-users. The latter is for questions about shell interaction, scripts, etc., though some internal stuff does cross the boundary in bug report threads.