Re: Get_Line
Samuel Tardieu <[email protected]> Fri, 09 Apr 2004 12:59:21 +0200
| Newsgroups | gmane.comp.lang.ada.sockets |
|---|---|
| Organization | Avian Carrier & Friends |
| Message-ID | <[email protected]> |
>>>>> "Martin" == Martin Persson <[email protected]> writes: Martin> Is there a design reason why Get_Line in AdaSockets is a Martin> function and not comformant with the standard Get_Line for Martin> strings which is a procedure? Martin, I have to admit I am confused here. From sockets.ads: procedure Get_Line (Socket : Socket_FD'Class; Str : in out String; Last : out Natural); -- Get a full line from the socket. CR is ignored and LF is considered -- as an end-of-line marker. function Get_Line (Socket : Socket_FD'Class; Max_Length : Positive := 2048) return String; -- Function form for the former procedure Both procedural and functional forms are present. What version of AdaSockets are you referring to? Sam -- Samuel Tardieu -- [email protected] -- http://www.rfc1149.net/sam _______________________________________________ AdaSockets mailing list [email protected] http://lists.rfc1149.net/mailman/listinfo/adasockets