News:

;) This forum is the property of Proton software developers

Main Menu

Code convertion

Started by joesaliba, Jul 26, 2023, 11:46 AM

Previous topic - Next topic

joesaliba

Hi,

I have a C code: -

cellData |= cell1Data & 0x0FFF;
Is it correct if I change it to Positron format: -

cellData = cellData | (cell1Data & 0x0FFF)
Thank you

Joe

Dompie

I think that is correct.
In C it is allowed to make the statement a=a|b unreadable by writing a|=b.

That example is exactly why I love Positron so much and don't want to do anything with C.

Johan

joesaliba