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

Rewrite static_cast with TObject::cast<T>() #42

Open
kpp opened this issue Nov 18, 2013 · 0 comments
Open

Rewrite static_cast with TObject::cast<T>() #42

kpp opened this issue Nov 18, 2013 · 0 comments

Comments

@kpp
Copy link
Collaborator

kpp commented Nov 18, 2013

globals.nilObject->cast<TByteObject>();
newOrdinaryObject(klass, sizeof(TObjectArray) + dataSize * sizeof(TObject*))->cast<TObjectArray>();

vs

static_cast<TByteObject*>(globals.nilObject);
static_cast<TObjectArray*>( newOrdinaryObject(klass, sizeof(TObjectArray) + dataSize * sizeof(TObject*)) );
@0x7CFE 0x7CFE modified the milestones: Version 0.5, Version 0.3 May 8, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants