[Lazarus] If TProcess.CommandLine is deprecated...
Everton Vieira
tonvieira at gmail.com
Wed Feb 8 12:07:11 CET 2012
How about in the SetCommandLine, of the property CommandLine he does the split between exename and parameters. By this, the two options could be available. Of course, who puts a parameter with space and not set the " " will deal with some error, which is good to learn. About that, could be created some manner to offer hints and tips on code editor in how about to use de elements of the class. It's will be very good documentation and also very good IDE behavior.
Em 08/02/2012, às 08:36, Sven Barth escreveu:
> Am 08.02.2012 04:23, schrieb William Oliveira Ferreira:
>> I agree that a comment in front of the deprecated would be good to the
>> uninformed as me, but I also do not want to seem boring. I wish
>> developers would focus on tools for debugging, but follow the road map
>> and I see good things to come.
>
> A comment in front of the deprecated won't be good, but a string behind the deprecated would be nice ;) (for the reason see below)
>
> === example begin ===
>
> program deprecatedtest;
>
> type
> TTest = class
> fFoo: String;
> property Foo: String read fFoo; deprecated 'I''m not needed anymore';
> end;
>
> var
> t: TTest;
> begin
> t := TTest.Create;
> Writeln(t.Foo);
> end.
>
> === example end ===
>
> === output begin ===
>
> PS P:\tests\oneshots> fpc .\deprecatedtest.pas
> Free Pascal Compiler version 2.6.0 [2011/12/25] for i386
> Copyright (c) 1993-2011 by Florian Klaempfl and others
> Target OS: Win32 for i386
> Compiling .\deprecatedtest.pas
> deprecatedtest.pas(15,13) Warning: Symbol "Foo" is deprecated: "I'm not needed anymore"
> Linking deprecatedtest.exe
> 16 lines compiled, 0.1 sec , 28608 bytes code, 1964 bytes data
> 1 warning(s) issued
>
> === output end ===
>
> Regards,
> Sven
>
> --
> _______________________________________________
> Lazarus mailing list
> Lazarus at lists.lazarus.freepascal.org
> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
More information about the Lazarus
mailing list