TEAM-ADA Archives

Team Ada: Ada Programming Language Advocacy

TEAM-ADA@LISTSERV.ACM.ORG

Options: Use Forum View

Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Stephen Leake <[log in to unmask]>
Reply To:
Stephen Leake <[log in to unmask]>
Date:
Tue, 2 Sep 2003 09:57:37 -0400
Content-Type:
text/plain
Parts/Attachments:
text/plain (37 lines)
Pascal Obry <[log in to unmask]> writes:

> I really prefer :
>
>  Ada.Text_IO.Put_Line
>    (File => Log_File,
>     Item => Event
>              & Ada.Calendar.Day_Duration'Image(The_Seconds) & " - "
>              & Ada.Calendar.Day_Number'Image(The_Day)
>              & Ada.Calendar.Month_Number'Image(The_Month)
>              & Ada.Calendar.Year_Number'Image(The_Year));
>
> You do not have to parse the whole line to see what operator is used between
> lines.

Hmph. _Everybody_ knows that the operator goes at the end of the line,
not the beginning :).

Ada.Text_IO.Put_Line
  (File => Log_File,
   Item => Event &
            Ada.Calendar.Day_Duration'Image(The_Seconds) & " - " &
            Ada.Calendar.Day_Number'Image(The_Day) &
            Ada.Calendar.Month_Number'Image(The_Month) &
            Ada.Calendar.Year_Number'Image(The_Year));

_Much_ better.

> But this is really a matter of personal preferences!

Yes.

Okay, I'll be quiet now :)

--
-- Stephe

ATOM RSS1 RSS2