ObjFW  Diff

Differences From Artifact [538455302e]:

  • File src/OFNumber.m — part of check-in [366681bebe] at 2014-06-26 00:58:57 on branch trunk — OFNumber: Remove methods for arithmetic

    These methods encouraged doing arithmetic on objects rather than getting
    the C type value, doing the arithmetic and creating a new object. They
    didn't do anything else internally, and so doing this manually isn't
    slower - it's even faster if you do multiple operations, as no temporary
    objects are created then.

    Another advantage of this is that there are no longer uncertainties
    about types of different OFNumber objects when doing arithmetic, as the
    user has to be explicit about the types when getting the C type value
    and thus knows which types will be used for the arithmetic. (user: js, size: 23797) [annotate] [blame] [check-ins using]

To Artifact [e5c84f2d31]:


1
2
3
4
5
6
7
8
9
/*
 * Copyright (c) 2008, 2009, 2010, 2011, 2012, 2013, 2014
 *   Jonathan Schleifer <js@webkeks.org>
 *
 * All rights reserved.
 *
 * This file is part of ObjFW. It may be distributed under the terms of the
 * Q Public License 1.0, which can be found in the file LICENSE.QPL included in
 * the packaging of this file.

|







1
2
3
4
5
6
7
8
9
/*
 * Copyright (c) 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015
 *   Jonathan Schleifer <js@webkeks.org>
 *
 * All rights reserved.
 *
 * This file is part of ObjFW. It may be distributed under the terms of the
 * Q Public License 1.0, which can be found in the file LICENSE.QPL included in
 * the packaging of this file.