[adasockets] Re: Get_Line
Samuel Tardieu
sam at rfc1149.net
Fri Apr 9 12:59:21 CEST 2004
>>>>> "Martin" == Martin Persson <martin at potatismos.nu> 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 -- sam at rfc1149.net -- http://www.rfc1149.net/sam
More information about the AdaSockets
mailing list