TIP: Click on subject to list as thread! ANSI
echo: rberrypi
to: KEITH THOMPSON
from: SCOTT LURNDAL
date: 2019-02-25 23:04:00
subject: Re: C is not a low level

Keith Thompson  writes:
>Bill Findlay  writes:
>[...]
>> There is language in which you can write:
>>
>> copy : String := source;
>>
>> The compiler does all the work.
>> No need to use the heap.
>> The errors being discussed cannot happen, so no need for defensive coding.
>> It is used when lives are at stake.
>> It runs, at least some, code faster than C.
>> It is available on the R Pi.
>>
>> Any guesses?
>
>No.
>
>You've posted at least two more followups without telling us what
>language you're talking about.
>
>So, what language are you talking about?  I, for one, am not interested
>in guessing.
>
>Please consider trimming the newsgroups to which this discussion is
>being inappropriately cross-posted.

I'm pretty sure it is ADA.

   type ALIs_Record is record
      Afile : File_Name_Type;
      --  Name of ALI file

      Ofile_Full_Name : Name_Id;
      --  Full name of object file corresponding to the ALI file

      Sfile : File_Name_Type;
      --  Name of source file that generates this ALI file (which is equal
      --  to the name of the source file in the first unit table entry for
      --  this ALI file, since the body if present is always first).
...


Which would make the above example simple string assignment; in C

strcpy(copy, source);

I believe that ADA strings, however, have an implicit length field.

--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | FidoUsenet Gateway (3:770/3)

SOURCE: echomail via QWK@docsplace.org

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.