![]() |
.. (לתיקייה המכילה) | |
You forgot to mention what is the functionality of each Sum function | |
The third parameter that each Sum function receives is a Pointer to a function. Therefore, the Sum functions don't have a specific functionality. They do whatever the function they recieved as a parameter is doing. |
Do we need to implement the function sumBoolToChar? | |
No, it's not one of the 5 Sum functions you need to implement. Please note that the three usage examples in the exercise are just EXAMPLES, and nothing more. You don't need to implement them or do anything else with them. |
According to the slides, Pascal functions can only return primitive values. | |
This is due to the fact that Free-Pascal does not comply with the standards of the Original Pascal. |
The slides state that only primitive values in Pascal are first-class. Why isn't String a first-class value? | |
Again, this is due to the differences between Free Pascal and the original Pascal. We will accept both answers to whether string is a first-class value or not, as long as there's a reasonable explanation. |