* Emacs
@ 1988-10-21 21:45 Fred Hosch
0 siblings, 0 replies; 5+ messages in thread
From: Fred Hosch @ 1988-10-21 21:45 UTC (permalink / raw)
Does anyone have an Emacs mode implementation for Ada that they
are willing to share?
Fred Hosch
fred@cs.utexas.edu
^ permalink raw reply [flat|nested] 5+ messages in thread
* emacs
@ 1998-01-26 0:00 Nick Roberts
0 siblings, 0 replies; 5+ messages in thread
From: Nick Roberts @ 1998-01-26 0:00 UTC (permalink / raw)
I always liked "escape meta alt control shift" :-}
Nick Roberts
Croydon, UK
^ permalink raw reply [flat|nested] 5+ messages in thread
* Allocation question
@ 2009-05-11 10:23 Olivier Scalbert
2009-05-11 10:51 ` Use aggregates (Was: Allocation question) Jacob Sparre Andersen
0 siblings, 1 reply; 5+ messages in thread
From: Olivier Scalbert @ 2009-05-11 10:23 UTC (permalink / raw)
Hello,
I have write a small package:
---------------------------------------------------
-- ads
---------------------------------------------------
package Image is
type Color_T is record
Red: Integer;
Green: Integer;
Blue: Integer;
end record;
type Image_T is array(Positive range <>, Positive range <>) of Color_T;
procedure Fill(Image: in out Image_T; Color: Color_T);
end Image;
---------------------------------------------------
-- adb
---------------------------------------------------
package body Image is
procedure Fill(Image: in out Image_T; Color: Color_T) is
begin
for x in Image'range(1) loop
for y in Image'range(2) loop
Image(x,y) := Color;
end loop;
end loop;
end Fill;
end Image;
---------------------------------------------------
-- test
---------------------------------------------------
with Image;
use Image;
procedure Test_Image is
Image : Image_T(1..100, 1..100);
FillColor : constant Color_T := (0, 0, 0);
begin
Fill(Image, FillColor);
end Test_Image;
This program seems to work.
However when I increase the size of Image, I get a Segmentation fault.
Should I need to play with access type and allocation stuff ?
Thanks,
Olivier
^ permalink raw reply [flat|nested] 5+ messages in thread
* Use aggregates (Was: Allocation question)
2009-05-11 10:23 Allocation question Olivier Scalbert
@ 2009-05-11 10:51 ` Jacob Sparre Andersen
2009-05-12 9:13 ` Emacs Stephen Leake
0 siblings, 1 reply; 5+ messages in thread
From: Jacob Sparre Andersen @ 2009-05-11 10:51 UTC (permalink / raw)
Olivier Scalbert wrote:
> procedure Fill(Image: in out Image_T; Color: Color_T) is
> begin
> for x in Image'range(1) loop
> for y in Image'range(2) loop
> Image(x,y) := Color;
> end loop;
> end loop;
> end Fill;
I would sugges that you rather wrote this:
Image := (others => (others => Color));
It is a more precise expression of what (I guess) you want done, and
thus it gives the compiler more precise information to work with.
Greetings,
Jacob
--
"Any newsgroup where software developers hang out is
an Emacs newsgroup."
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Emacs
2009-05-11 10:51 ` Use aggregates (Was: Allocation question) Jacob Sparre Andersen
@ 2009-05-12 9:13 ` Stephen Leake
2009-05-12 9:38 ` Emacs Ludovic Brenta
2009-05-12 9:46 ` Emacs Olivier Scalbert
0 siblings, 2 replies; 5+ messages in thread
From: Stephen Leake @ 2009-05-12 9:13 UTC (permalink / raw)
Jacob Sparre Andersen <sparre@nbi.dk> writes:
> "Any newsgroup where software developers hang out is
> an Emacs newsgroup."
This used to be much more true than it is now, unfortunately. I keep
running into people at work who "just use GEdit". Sigh.
--
-- Stephe
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Emacs
2009-05-12 9:13 ` Emacs Stephen Leake
@ 2009-05-12 9:38 ` Ludovic Brenta
2009-05-12 9:46 ` Emacs Olivier Scalbert
1 sibling, 0 replies; 5+ messages in thread
From: Ludovic Brenta @ 2009-05-12 9:38 UTC (permalink / raw)
Stephen Leake wrote on comp.lang.ada:
> Jacob Sparre Andersen <spa...@nbi.dk> writes:
>
> > "Any newsgroup where software developers hang out is
> > an Emacs newsgroup."
>
> This used to be much more true than it is now, unfortunately. I keep
> running into people at work who "just use GEdit". Sigh.
I've been using Emacs as my main IDE both at home and at work since
2000, adding email and other things a couple of years later, and have
no plans of changing. One day I might even become a member of the
Church of Emacs :)
--
Ludovic Brenta.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Emacs
2009-05-12 9:13 ` Emacs Stephen Leake
2009-05-12 9:38 ` Emacs Ludovic Brenta
@ 2009-05-12 9:46 ` Olivier Scalbert
1 sibling, 0 replies; 5+ messages in thread
From: Olivier Scalbert @ 2009-05-12 9:46 UTC (permalink / raw)
Stephen Leake wrote:
> Jacob Sparre Andersen <sparre@nbi.dk> writes:
>
>> "Any newsgroup where software developers hang out is
>> an Emacs newsgroup."
>
> This used to be much more true than it is now, unfortunately. I keep
> running into people at work who "just use GEdit". Sigh.
>
<troll>
and what about vi/gvim ?
</troll>
;-)
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2009-05-12 9:46 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1988-10-21 21:45 Emacs Fred Hosch
-- strict thread matches above, loose matches on Subject: below --
1998-01-26 0:00 emacs Nick Roberts
2009-05-11 10:23 Allocation question Olivier Scalbert
2009-05-11 10:51 ` Use aggregates (Was: Allocation question) Jacob Sparre Andersen
2009-05-12 9:13 ` Emacs Stephen Leake
2009-05-12 9:38 ` Emacs Ludovic Brenta
2009-05-12 9:46 ` Emacs Olivier Scalbert
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox