comp.lang.ada
  Home FAQ Contact Sign in
comp.lang.ada only
 
Advanced search
December 2008
motuwethfrsasuw
1234567 49
891011121314 50
15161718192021 51
22232425262728 52
293031     1
2008
 Jan   Feb   Mar   Apr 
 May   Jun   Jul   Aug 
 Sep   Oct   Nov   Dec 
2008 2007 2006  
total
comp.lang.ada Profile…
RELATED GROUPS

POPULAR GROUPS

more...

 Up
  Re: Protected Objects - eggshell model         


Author: hesobreira
Date: Dec 25, 2008 06:29

It is all clear now.

Thank you (Adam and Bob) for the answers and thanks for the references
to the RM.

Hugo

On Dec 24, 1:43 am, Adam Beneschan irvine.com> wrote:
> On Dec 23, 2:08 pm, hesobreira gmail.com> wrote:
>
>> This was not clear to me while reading Barnes' book about protected
>...
Show full article (1.20Kb)
no comments
  Re: Screen package (Mike Feldman)         


Author: Ivan Levashew
Date: Dec 24, 2008 22:26

On 24 дек, 13:20, "John B. Matthews" nospam.com> wrote:
>
> IIRC, some terminal emulators clear the screen by writing a series
> of empty lines to the screen. If the terminal window is enlarged,
> the number of lines written may not suffice to clear the entire
> screen. Have you tried a different terminal emulator?
>
> <http://technosrix.blogspot.com/2008/08/best-windows-terminal-emulator...>

This post isn't quite correct. There is no such thing as terminal
emulator on plain Win32 installation. Terminal emulator is supposed
to map stream of bytes to a matrix of characters. There are also
some details such as signal hangling (e. g. SIGWINCH), but these
are minory issues. Generally, UNIX Terminals operate on streams.
Windows console doesn't.
Show full article (2.17Kb)
no comments
  Re: Screen package (Mike Feldman)         


Author: Ivan Levashew
Date: Dec 24, 2008 21:55

On 24 дек, 03:22, tolkamp wrote:
> I have downloaded the Screen package from Mike Feldman.
> It works on the CMD (terminal) window with the following problems
> after a ClearScreen command :
> 1) Only half of the lines of the screen is cleared.
> 2) The prompt "C:\GNAT\bin>" remains displayed at the left   upper
> corner of the screen.
> How can the screen be cleared complete?

Try this:
"A Win32 version of Mike Feldman's SCREEN package"
http://users.ncrvnet.nl/gmvdijk/packages.html

It should work better.
no comments
  Re: gnatcheck         


Author: Stephen Leake
Date: Dec 24, 2008 12:03

Stefan Soos writes:
>> I'd start with the GNAT User's Guide section on gnatcheck:
>>
>> <http://gcc.gnu.org/onlinedocs/gcc-4.3.2/gnat_ugn_unw/>
>>
> Thanks but I've already checked this source, but it's no help to me.
> It describes what gnatcheck does when using the Discriminated_Record
> rule. But I don't know why its a violation. Whats wrong with
> discriminated records?

I consider this a bug in the gnatcheck manual; you should send a
report to AdaCore. They might even answer your question :)

--
-- Stephe
no comments
  Re: Screen package (Mike Feldman)         


Author: anon
Date: Dec 24, 2008 07:57

You might try.

Put ( ASCII.ESC & "[2J" ) ; -- ANSI escape seq for clearing screen

Also do a search for "ANSI ESCAPE CODES" for other codes.

In <763c9600-b888-4d85-9fe9-2f1e5286eadf@i24g2000prf.googlegroups.com>, tolkamp writes:
>I have downloaded the Screen package from Mike Feldman.
>It works on the CMD (terminal) window with the following problems
>after a ClearScreen command :
>1) Only half of the lines of the screen is cleared.
>2) The prompt "C:\GNAT\bin>" remains displayed at the left upper
>corner of the screen.
>How can the screen be cleared complete?
no comments
  Announce: Gela ASIS 0.2         


Author: Maxim Reznik
Date: Sep 19, 2008 09:13

I would like to announce Gela ASIS 0.2 release.

http://www.ten15.org/wiki/gela_asis

Gela ASIS is platform/compiler independent implementation of Ada
Semantic Interface Specification (ASIS). Gela ASIS implements core
ASIS Version 2.0 and most of ASIS Issues (SI99), so it's capable to
process Ada 2005 code.

Recent changes are:
* Makefile to easy build and install Gela ASIS
* implementation of Ada 2005 issues
* implementation of private operations
* implementation of Asis.Compilation_Units.Relations

Best regards
--
Maxim Reznik
4 Comments
  Structure of the multitasking server         


Author: Maciej Sobczak
Date: Sep 19, 2008 05:21

Hi all,

Imagine a server with fixed number of worker tasks. There is no queue
of jobs and jobs are immediately passed to one of the tasks that is
currently idle. There is a separate task (or just the main one) that
provides jobs for worker tasks.

I am concerned with the proper structure of objects - I mean in the
sense of recommended Ada practice.
Obviously there is a need for some shared resource where the
requesting task will put the job and from where the worker task will
pick it up.

This is more or less what I came up with, where the "channel" is a
single processing pipeline:

type Worker_State is (Idle, Ready, Working);
Show full article (3.00Kb)
16 Comments
  Compiling Ada Projects with Emacs         


Author: Joe
Date: Sep 18, 2008 19:16

Hi all,
I've gotten stuck again. I'm trying to compile an Ada project using
the .gpr file. I went through the examples to try and get those to
work. I can't compile Example 4 from the ada mode info pages. I load
the project file, but then there is no "Set main and build" option in
my menu. I'm using emacs 23.0.60 with the latest ada-mode with all
customization options set at the default.

I try to compile hello_4.adb and I get this:

cd /home/joe/prog/ada/examples/Example_4/Gnat_Project/Other/
gnatmake -o hello_4 hello_4 -g -cargs -gnatq -gnatQ -bargs -largs

gcc-4.3 -c -g -gnatq -gnatQ hello_4.adb
hello_4.adb:1:06: file "hello_pkg.ads" not found
hello_4.adb:5:04: "Hello_Pkg" is undefined
gnatmake: "hello_4.adb" compilation error

I can get it to compile by customizing "Ada Prj Default Gnatmake Opts"
to include the -P switch with the location to the gpr file. It seems
like I'm just missing an important variable in this option.

Also, how do you enable syntax highlighting for .gpr files?
Show full article (1.03Kb)
2 Comments
  gnatmake and gprbuild         


Author: belteshazzar
Date: Sep 18, 2008 01:37

I'm attempting to build a large system using gnat project files, I
have multiple libraries to be built some that have Ada and C.

Unfortuantely I've found to compile the Ada and C i have to use
gprbuild BUT gprbuild fails (reports a gcc error) to build some of the
large libraries (where as gnatmake WILL build them)

Any ideas?

I think that the command line list of files sent to gcc by gprlib is
to long, but i can't work out how gnatmake doesn't get this same
error.

Any lessons learnt using these tools would be appreciated.
2 Comments
  Primitive curiosity...         


Author: mockturtle
Date: Sep 17, 2008 13:29

Dear *,
I was doing some experiments with dispatching operations
and I discovered something that made me curious... Consider
the following 3-file set: 1 package (base.ad?) with a
"root" abstract type (Root) and two derived types
(Derived_1 and Derived_2) and 1 "main" (test_bas.adb)

----------------------- Filename : base.ads ----------------
package Base is
type Root is abstract tagged null record;

-- Uncomment LINE A or LINE B, but not both
-- === LINE A ===
-- procedure Print(X : Root) is abstract;

type Derived_1 is new Root with
record
A : Integer;
end record;
Show full article (3.38Kb)
3 Comments
1 2 3 4 5 6 7 8 9