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

No dependency ordering in Logos #7

Open
theiostream opened this issue Feb 24, 2014 · 1 comment
Open

No dependency ordering in Logos #7

theiostream opened this issue Feb 24, 2014 · 1 comment

Comments

@theiostream
Copy link
Contributor

Code such as

%subclass FAFloatyFolderView : FACommonFolderView
%end

%subclass FACommonFolderView : SBFolderView
%end

will generate output:

Class _logos_class$_ungrouped$FACommonFolderView = objc_getClass("FACommonFolderView");
Class _logos_class$_ungrouped$FAFloatyFolderView = objc_allocateClassPair(_logos_class$_ungrouped$FACommonFolderView, "FAFloatyFolderView", 0);
Class _logos_class$_ungrouped$FACommonFolderView = objc_allocateClassPair(_logos_class$_ungrouped$SBFolderView, "FACommonFolderView", 0);

Therefore causing FAFloatyFolderView to be initialized without a superclass, and generating a redundant call to objc_getClass().

@kirb
Copy link
Member

kirb commented Feb 12, 2016

I would consider this a situation that shouldn't be supported. Clang/GCC doesn’t support this with @interface. However, Logos should be throwing an error for this.

@uroboro uroboro transferred this issue from theos/theos Nov 2, 2018
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