-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added IntToStr base variant + fixed overload issues + added & updated…
… tests that were relying on IntToStr not being overloaded
- Loading branch information
1 parent
7f069c0
commit 9660ff6
Showing
16 changed files
with
228 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
Syntax Error: More arguments expected [line: 3, column: 7] | ||
Syntax Error: Incompatible types: "class function ClassType: TClass" and "function IntToStr(Integer): String" [line: 3, column: 6] | ||
Syntax Error: There is no overloaded version of "IntToStr" that can be called with these arguments [line: 3, column: 7] | ||
Syntax Error: Incompatible types: "class function ClassType: TClass" and "function IntToStr(Integer, Integer): String" [line: 3, column: 6] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
Syntax Error: Destructor can only be invoked on instance [line: 3, column: 15] | ||
Syntax Error: Incompatible types: "function IntToStr(Integer): String" and "destructor Destroy" [line: 3, column: 6] | ||
Syntax Error: Incompatible types: "function IntToStr(Integer, Integer): String" and "destructor Destroy" [line: 3, column: 6] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
var p := @IntToStr; | ||
|
||
if assigned(p) then PrintLn(p(5)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
Hint: "assigned" does not match case of declaration ("Assigned") [line: 3, column: 4] | ||
Syntax Error: Ambiguous matching overloads of "IntToStr" [line: 3, column: 13] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
for var i := 2 to 36 do begin | ||
PrintLn(IntToStr(0, i)); | ||
PrintLn(IntToStr(123456789, i)); | ||
PrintLn(IntToStr(-123456789, i)); | ||
end; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,105 @@ | ||
0 | ||
111010110111100110100010101 | ||
-111010110111100110100010101 | ||
0 | ||
22121022020212200 | ||
-22121022020212200 | ||
0 | ||
13112330310111 | ||
-13112330310111 | ||
0 | ||
223101104124 | ||
-223101104124 | ||
0 | ||
20130035113 | ||
-20130035113 | ||
0 | ||
3026236221 | ||
-3026236221 | ||
0 | ||
726746425 | ||
-726746425 | ||
0 | ||
277266780 | ||
-277266780 | ||
0 | ||
123456789 | ||
-123456789 | ||
0 | ||
63762A05 | ||
-63762A05 | ||
0 | ||
35418A99 | ||
-35418A99 | ||
0 | ||
1C767471 | ||
-1C767471 | ||
0 | ||
12579781 | ||
-12579781 | ||
0 | ||
AC89BC9 | ||
-AC89BC9 | ||
0 | ||
75BCD15 | ||
-75BCD15 | ||
0 | ||
51G2A21 | ||
-51G2A21 | ||
0 | ||
3B60F89 | ||
-3B60F89 | ||
0 | ||
2BG64AE | ||
-2BG64AE | ||
0 | ||
1IBC1J9 | ||
-1IBC1J9 | ||
0 | ||
194GH7F | ||
-194GH7F | ||
0 | ||
11L0805 | ||
-11L0805 | ||
0 | ||
J43JFB | ||
-J43JFB | ||
0 | ||
FC2EGL | ||
-FC2EGL | ||
0 | ||
CG15LE | ||
-CG15LE | ||
0 | ||
AA44A1 | ||
-AA44A1 | ||
0 | ||
8G86NI | ||
-8G86NI | ||
0 | ||
74NQB1 | ||
-74NQB1 | ||
0 | ||
60FSHJ | ||
-60FSHJ | ||
0 | ||
52CE69 | ||
-52CE69 | ||
0 | ||
49L302 | ||
-49L302 | ||
0 | ||
3LNJ8L | ||
-3LNJ8L | ||
0 | ||
353C3R | ||
-353C3R | ||
0 | ||
2OD2I1 | ||
-2OD2I1 | ||
0 | ||
2C9G1T | ||
-2C9G1T | ||
0 | ||
21I3V9 | ||
-21I3V9 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
var p := @IntToStr; | ||
var p := @IntToHex; | ||
|
||
if assigned(p) then PrintLn(p(5)); | ||
if assigned(p) then PrintLn(p(5, 1)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.