Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid C3 class #9

Closed
eugeneloza opened this issue Apr 21, 2017 · 2 comments
Closed

Invalid C3 class #9

eugeneloza opened this issue Apr 21, 2017 · 2 comments

Comments

@eugeneloza
Copy link
Contributor

In https://github.com/eugeneloza/modern-pascal-introduction/blob/master/code-samples/interfaces_corba_test.lpr TMyClass3 doesn't refer to the interface and therefore will cause an error, right? This "feature" is described in two sequential examples, but in the first example it looks unexpected.

@michaliskambi
Copy link
Owner

The condition C3 is IMyInterface will be false, in the if C3 is IMyInterface then ... . So it will not cause an error, the line UseThroughInterface(C3 as IMyInterface) simply will not be executed.

I'll mark it in the code, to make it clear. Thank you!

@michaliskambi
Copy link
Owner

I updated the example code:)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants