View Issue Details

IDProjectCategoryView StatusLast Update
0005897JEDI VCL00 JVCL Componentspublic2012-09-10 14:15
ReporterAriochAssigned Toobones 
PrioritynormalSeveritytweakReproducibilityalways
Status resolvedResolutionfixed 
Product Version 
Target VersionFixed in Version3.46 
Summary0005897: JvJCLUtils INC(Date,Month,...) should have default parameter
DescriptionIn Delphi IncMonth(x) is the same as IncMonth(+1)

which is reasonable and useful.

Same for IncWeek, IncYear and all the rest from SysUtls and DateUtils.


So the following functions should make their last parameter default-valued as well. Otherwise using that unit might break compilation of code, that already used those functions (taking them from SysUtils or DateUtils)

function IncDay(ADate: TDateTime; Delta: Integer = 1): TDateTime;
function IncMonth(ADate: TDateTime; Delta: Integer = 1): TDateTime;
function IncYear(ADate: TDateTime; Delta: Integer = 1): TDateTime;
TagsNo tags attached.

Activities

obones

2012-06-12 15:43

administrator   ~0019921

This is now in SVN

Issue History

Date Modified Username Field Change
2012-06-04 12:12 Arioch New Issue
2012-06-11 17:36 obones Status new => acknowledged
2012-06-12 15:43 obones Note Added: 0019921
2012-06-12 15:43 obones Status acknowledged => resolved
2012-06-12 15:43 obones Fixed in Version => Daily / SVN
2012-06-12 15:43 obones Resolution open => fixed
2012-06-12 15:43 obones Assigned To => obones
2012-09-10 14:15 obones Fixed in Version Daily / SVN => 3.46