Author Topic: Classes, Unions and Arrays Help Please  (Read 20508 times)

0 Members and 1 Guest are viewing this topic.

Aurel

  • Guest
Re: Classes, Unions and Arrays Help Please
« Reply #75 on: June 25, 2013, 01:56:46 PM »
Aha i see.
Hmmm it looks that work ok on my computer

X

Charles Pegge

  • Guest
Re: Classes, Unions and Arrays Help Please
« Reply #76 on: June 25, 2013, 02:09:38 PM »
Hi kent,

the answer you should get is 2
(Oxygen-in-progress posted 14 hours ago)

Whet happens with

print version





PS: also posted lastest oxygen.dll here:

http://www.oxygenbasic.org/forum/index.php?topic=749

kryton9

  • Guest
Re: Classes, Unions and Arrays Help Please
« Reply #77 on: June 25, 2013, 03:56:33 PM »
Ok, downloaded both the latest in progress and also the oxygen.dll.

I do get an answer of 2 now for print 0x80000000<<<2  :)

Version is: A40 17:42 21/06/2013

I am thinking perhaps the code I copy from the forum is not working, perhaps it added a strange character. I will check into that next.
update: It has to be the copy and paste from the forums. I turned on view white spaces and end of line and compiled and got a different error this time.

X
« Last Edit: June 25, 2013, 04:03:49 PM by kryton9 »

kryton9

  • Guest
the solution
« Reply #78 on: June 25, 2013, 04:12:26 PM »
This did the trick:



X

kryton9

  • Guest
Re: Classes, Unions and Arrays Help Please
« Reply #79 on: June 28, 2013, 12:49:29 AM »
Charles, you mentioned that operator overloading was out, but is it still valid using it this way (OperatorClass.o2bas)?
http://www.oxygenbasic.org/forum/index.php?topic=461.msg3633#msg3633

Charles Pegge

  • Guest
Re: Classes, Unions and Arrays Help Please
« Reply #80 on: June 28, 2013, 01:38:09 AM »
Hi Kent,

I dropped the whole operator overloading system, including operator classes, because it was conceptually unsound, and seldom used. So its back to straight functions, methods and macros. It sounds drastic, but in practice, I think it will have minimal impact and avoid much confusion.

To take vectors as an example, it is rare to do vector-vector arithmetic, but there are many useful vector functions, for which operator notation would be inappropriate such as producing dot products, normals, and polar conversions.

kryton9

  • Guest
Re: Classes, Unions and Arrays Help Please
« Reply #81 on: June 28, 2013, 11:49:35 AM »
I understand, I just wanted to nail it down so I can move forward then without it.