Am 13.03.2013 10:53 schrieb "Xiangrong Fang" :
>
> 2013/3/13 Sven Barth
>>
>> Am 13.03.2013 10:08 schrieb "Xiangrong Fang" :
>> > 2) After SetLength(myarray, 0), is myarray nil or pointing to some
invalid address?
>>
>> It will be Nil. An equivalent alternative would be:
>>
>> MyArray := Nil;
>
>
2013/3/13 Sven Barth
> Am 13.03.2013 10:08 schrieb "Xiangrong Fang" :
> > 2) After SetLength(myarray, 0), is myarray nil or pointing to some
> invalid address?
>
> It will be Nil. An equivalent alternative would be:
>
> MyArray := Nil;
>
Sorry, I didn't see this reply just now... You mean, by
Am 13.03.2013 10:08 schrieb "Xiangrong Fang" :
> 2) After SetLength(myarray, 0), is myarray nil or pointing to some
invalid address?
It will be Nil. An equivalent alternative would be:
MyArray := Nil;
Regards,
Sven
___
fpc-pascal maillist - fpc-pasca
Hi All,
I have two simple questions:
1) As far as I know class variables in FPC are automatic initialize to the
NULL value (e.g. 0 or "" or whatever), does that include dynamic arrays?
e.g.
TMyClass = class
myarray: array[0..100] of Integer;
end;
will myarray be initialized to nil?
2) Aft
Al 30/07/10 00:12, En/na José Mejuto ha escrit:
I was looking for a "with" like:
with TNX(a) "named" as TNX_a do begin
with TNXX(b) "named" as TNXX_b do begin
TNX_a.OP1:=TNXX_b.OP2;
TNXX_b.OP3:=TNX_a.OP2;
[.]
end;
end;
But I think that there is nothing like that in Pas
Hello FPC-Pascal,
Thursday, July 29, 2010, 8:54:44 PM, you wrote:
>> 1) Is there any way in Pascal to write something like this
>> (pseudocode):
>>
>> With Result:=Object.Create() do begin
>> Free;
>> end;
JM> Just leave out the "Result:=" part and it will compile/work fine..
I was looking fo
On 29 Jul 2010, at 20:31, José Mejuto wrote:
> 1) Is there any way in Pascal to write something like this
> (pseudocode):
>
> With Result:=Object.Create() do begin
> Free;
> end;
Just leave out the "Result:=" part and it will compile/work fine..
> 2) Which is the expected way to detect if a f
Hello FPC-Pascal,
Two "simple" questions.
1) Is there any way in Pascal to write something like this
(pseudocode):
With Result:=Object.Create() do begin
Free;
end;
Which will be written without the "with" as:
Result:=Object.Create();
Result.Free;
2) Which is the expected way to detect if a
For this program : http://www.conoce3000.com/prueba.pp
Why not show the Euro?. The shell is in Win-1252 and the source code on Win-1252
Does WideChar only used with Unicode BMP Plane 0 ó UCS-4?
thanks.___
fpc-pascal maillist - fpc-pascal@lists.freepa
>
> On Sat, 23 Aug 2003, Luis Del Aguila wrote:
>
>> Two questions
>>
>> 1.- What is the difference with seekeoln() and eoln() functions?
>
> The first advances the file position to the end of the line.
> The second returns true if the current position is the end of the line.
>
>> 2.- What is
On Sat, 23 Aug 2003, Luis Del Aguila wrote:
> Two questions
>
> 1.- What is the difference with seekeoln() and eoln() functions?
The first advances the file position to the end of the line.
The second returns true if the current position is the end of the line.
> 2.- What is the difference wit
Two questions
1.- What is the
difference with seekeoln() and eoln() functions?
2.- What is the difference with seekeof()
and eof() functions?
12 matches
Mail list logo