Skip to content

Inconsistent declarations #75

@pjljvandelaar

Description

@pjljvandelaar

Hi Gnatcoll developers,

As you can see e.g. in

Prefix : Offset_Array (1 .. From_String'Length);
Reverse_Prefix : Offset_Array (1 .. From_String'Length);
K, K2 : Natural := 0;

some declarations are combined,
while others are kept apart.

Do you want to be consistent in this aspect?
So either

 Prefix          : Offset_Array (1 .. From_String'Length); 
 Reverse_Prefix  : Offset_Array (1 .. From_String'Length); 
 K               : Natural := 0; 
 K2              : Natural := 0; 

or

 Prefix, Reverse_Prefix  : Offset_Array (1 .. From_String'Length); 
 K, K2                   : Natural := 0; 

If so, using the rejuvenation library we can rewrite the code to the desired format.

Greetings,
Pierre

Problem detected and solvable using Rejuvenation-Ada crate
vote for Rejuvenation-Ada as The 2022 Ada Crate Of The Year

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions