Refinement of DevCPP.GetCode

Re: Refinement of DevCPP.GetCode

Postby Zorko » Mon May 14, 2018 12:45 pm

I tested this code, and it works fine on all my tests that I used.
With the exception of one moment! Empty strings are still allowed. Do you see any practical meaning in this?

Code: Select all
PROCEDURE {code} Proc1"", "", "", 9,  "", "" ; (* <= now it compiles! *)

I'm sure that empty strings should not be allowed in a body of a code procedure either.
Zorko
 
Posts: 10
Joined: Tue Sep 17, 2013 10:13 pm
Location: Ukraine

Re: Refinement of DevCPP.GetCode

Postby luowy » Thu May 17, 2018 4:34 am

it can be corrected by add a condition which check the length of the string.
luowy
 
Posts: 17
Joined: Thu Dec 17, 2015 1:32 pm

Re: Refinement of DevCPP.GetCode

Postby Josef Templ » Fri May 18, 2018 3:17 pm

# empty string:
Why should we add any code for testing such an exotic case?
And why should it be considered wrong at the first place?

- Josef
Josef Templ
 
Posts: 171
Joined: Tue Sep 17, 2013 6:50 am

Previous

Return to Bug

Who is online

Users browsing this forum: No registered users and 0 guests

cron