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 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,f59d6c1c0a3dac5f X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!news.glorb.com!proxad.net!proxad.net!newsfeed.arcor.de!news.arcor.de!not-for-mail Date: Mon, 27 Mar 2006 22:28:10 +0200 From: Georg Bauhaus Organization: future apps GmbH User-Agent: Debian Thunderbird 1.0.2 (X11/20051002) X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: ada and pl/sql References: <122gh5o729tsfcf@corp.supernews.com> In-Reply-To: <122gh5o729tsfcf@corp.supernews.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Message-ID: <44284aae$0$17572$9b4e6d93@newsread2.arcor-online.net> NNTP-Posting-Date: 27 Mar 2006 22:27:30 MEST NNTP-Posting-Host: aac1f977.newsread2.arcor-online.net X-Trace: DXC=B`Wk:=P9Ihe`BX@Z?dZ]MOidU X-Complaints-To: usenet-abuse@arcor.de Xref: g2news1.google.com comp.lang.ada:3657 Date: 2006-03-27T22:27:30+02:00 List-Id: Jason King wrote: > Ada string doesn't work because it raises errors for assignments of > shorter as well as longer strings. ada.strings.bounded and > ada.strings.unbounded are issues because assignment (:=) doesn't work > for them and concatenation is method not an operator. As far as I can > tell I can't overload the assignment operator or the || operator. > Other than creating a new language is there some way to make a > varchar2-like first-class datatype that has its own operators? There seems to have been some misinformation somewhere, try this: with Ada.Strings.Unbounded; with Ada.Text_IO; procedure v is use Ada.Strings.Unbounded, Ada; x: Unbounded_String := Null_Unbounded_String; begin x := x & "Hello"; x := x & "World"; Text_IO.put_line(to_string(x)); end v;