Jump to content

  • Log In with Google      Sign In   
  • Create Account

Jason Goepel

Member Since 15 May 2013
Offline Last Active Today, 09:18 AM

Posts I've Made

In Topic: Integer Division

05 September 2014 - 01:55 PM

It turned out to be a very small compiler modification.  As far as I can tell, this is complete.

In Topic: Integer Division

04 September 2014 - 03:11 PM

I agree that explicit conversions would be more readable than a backslash.  The only issue with int(expr) would be that not all large, 64-bit numbers convert to doubles without loss, so the result of a floating-point division followed by truncation would not necessarily be the same as integer division.  I'm not too concerned about that though, because I can always create some sort of "idivide" function in my application. 

In Topic: Integer Division

04 September 2014 - 11:55 AM

I thought about that, but my biggest problem comes from my users' use of literals.

In Topic: Version changes on 16bit string structures?

14 August 2014 - 05:16 AM

I'm not sure how to address your issue.  I have the most current version of AngelScript (revision 1988), and I don't experience any trouble with my 16-bit string literals.


I specify the 16-bit encoding:

engine->SetEngineProperty(asEP_STRING_ENCODING, 1);

I use MFC's CString class as my string class, and I register the string factory as follows:

CString StringFactory(asUINT length, const wchar_t* s)
    return CString(s, (int)(length/2));

r = engine->RegisterStringFactory("String", asFUNCTIONPR(StringFactory, (asUINT, const wchar_t*), CString), asCALL_CDECL);

In Topic: Template Specialization Subtypes

19 May 2014 - 06:06 AM

Is there a reason you did change asCObjectType::GetSubType as well?