From: Georg Bauhaus <bauhaus@futureapps.de>
Subject: Re: ada and pl/sql
Date: Mon, 27 Mar 2006 22:28:10 +0200
Date: 2006-03-27T22:27:30+02:00 [thread overview]
Message-ID: <44284aae$0$17572$9b4e6d93@newsread2.arcor-online.net> (raw)
In-Reply-To: <122gh5o729tsfcf@corp.supernews.com>
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;
next prev parent reply other threads:[~2006-03-27 20:28 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-03-27 20:05 ada and pl/sql Jason King
2006-03-27 20:28 ` Georg Bauhaus [this message]
2006-03-27 21:07 ` Björn Persson
2006-03-27 21:15 ` Martin Dowie
2006-03-27 23:28 ` Jason King
2006-03-28 2:53 ` Jeffrey Creem
2006-03-29 19:51 ` Martin Krischik
2006-03-29 19:47 ` Martin Krischik
2006-03-29 18:04 ` Kenneth Almquist
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox