Re: [fpc-pascal] Re: Library for network calculation

2011-07-27 Thread Sven Barth
Well... seems like you didn't notice this feature yet :D I'm talking about this: === source begin === procedure SomeProc; var somevar: Integer = 42; begin end; === source end === This works in FPC, but doesn't in Delphi ;) Regards Sven Am 26.07.2011 21:27, schrieb Jorge Aldo G. de F.

Re: [fpc-pascal] Re: Library for network calculation

2011-07-27 Thread Dimitri Smits
don't have a Delphi in reach for the moment to verify, but you could do that to a const (if you enable the assignable constants setting) procedure SomeProc; const someconst: Integer = 22; begin //blabla someconst := 42; //yadda yadda end; - Sven Barth pascaldra...@googlemail.com

Re: [fpc-pascal] Re: Library for network calculation

2011-07-27 Thread Sven Barth
On 27.07.2011 12:22, Dimitri Smits wrote: don't have a Delphi in reach for the moment to verify, but you could do that to a const (if you enable the assignable constants setting) procedure SomeProc; const someconst: Integer = 22; begin //blabla someconst := 42; //yadda yadda end;

Re: [fpc-pascal] Re: Library for network calculation

2011-07-27 Thread Jorge Aldo G. de F. Junior
nice, that was new to me :) 2011/7/27 Sven Barth pascaldra...@googlemail.com: On 27.07.2011 12:22, Dimitri Smits wrote: don't have a Delphi in reach for the moment to verify, but you could do that to a const (if you enable the assignable constants setting) procedure SomeProc; const  

[fpc-pascal] Re: Library for network calculation

2011-07-26 Thread Lukasz Sokol
On 26/07/2011 00:23, Paul Nicholls wrote: I didn't know that freepascal handled binary formatted numbers?!? % cheers, Paul [pun] yeah don't tell anyone, we don't want them to play games with pointers ;) like the c-programmers do ;) [/pun] L.

Re: [fpc-pascal] Re: Library for network calculation

2011-07-26 Thread Mark Morgan Lloyd
Jorge Aldo G. de F. Junior wrote: Some time ago someone asked for a library able to do network calculations. Here is something that might evolve into such library : [Snip] A library for network calculations would have to include IPv6, and ideally would interwork with (the equivalent of)

Re: [fpc-pascal] Re: Library for network calculation

2011-07-26 Thread Jorge Aldo G. de F. Junior
I dont like to take local variable initialization for granted. Even if the manual says that its guaranteed that a local variable will start with 0, i prefer to initialize everything to a known value myself. An aditional Move $varaddress, 00 at startup wont slow things down noticeably when your

Re: [fpc-pascal] Re: Library for network calculation

2011-07-26 Thread waldo kitty
On 7/26/2011 15:27, Jorge Aldo G. de F. Junior wrote: I dont like to take local variable initialization for granted. Even if the manual says that its guaranteed that a local variable will start with 0, i prefer to initialize everything to a known value myself. +1000~ this is

[fpc-pascal] Re: Library for network calculation

2011-07-25 Thread Jorge Aldo G. de F. Junior
Some time ago someone asked for a library able to do network calculations. Here is something that might evolve into such library : Uses Classes, SysUtils, StrUtils; Type TNetworkIP = Record Case Mode : Boolean Of True : (IP1, IP2, IP3, IP4 :

[fpc-pascal] Re: Library for network calculation

2011-07-25 Thread Paul Nicholls
Jorge Aldo G. de F. Junior jagf...@gmail.com wrote in message news:CAAHHabS9aUe9gwyNjkve-XVXsRyf2UPsArh6=fsdpgokugj...@mail.gmail.com... Some time ago someone asked for a library able to do network calculations. Here is something that might evolve into such library : SNIP Function