From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,25d835bb9a4a003f X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!postnews.google.com!m38g2000yqd.googlegroups.com!not-for-mail From: =?ISO-8859-1?Q?Hibou57_=28Yannick_Duch=EAne=29?= Newsgroups: comp.lang.ada Subject: Re: Splitting the object and type name spaces? (Was: Types, packages & objects : the good old naming conventions question (without religious ware)) Date: Sat, 31 Oct 2009 00:21:55 -0700 (PDT) Organization: http://groups.google.com Message-ID: <801e0534-0e72-4333-8a48-7fbd8d0fae54@m38g2000yqd.googlegroups.com> References: <29732c64-82d8-4ebb-968a-547fca267627@v30g2000yqm.googlegroups.com> NNTP-Posting-Host: 86.66.190.252 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: posting.google.com 1256973716 14627 127.0.0.1 (31 Oct 2009 07:21:56 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Sat, 31 Oct 2009 07:21:56 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: m38g2000yqd.googlegroups.com; posting-host=86.66.190.252; posting-account=vrfdLAoAAAAauX_3XwyXEwXCWN3A1l8D User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; fr),gzip(gfe),gzip(gfe) Xref: g2news2.google.com comp.lang.ada:8910 Date: 2009-10-31T00:21:55-07:00 List-Id: (forgotten) and the syntax will turns into ambiguous constructs, because there are place where this would not be possible to know if an identifier is to be a type or an object/function. B := A (Index) -- View conversion or array or function ? To make the distinction between array and function is easy (the array may be seen as a kind of function) : both cannot have the same name, so it is what has this name. If A is declared as an array, this is an array, if A is declared as a function, this is a function. But if A can be a function/array name and a type name in the same time, there is a trouble. This may be the danger you are looking for : the whole language syntax will need to be reworked (forget about all backward compatibility).