Welcome, Guest
Username: Password: Remember me
CodeTyphon MS Windows (Win7, Win8.x, Win10 and Win11) OS Development, discussions and problems
  • Page:
  • 1

TOPIC:

Operation << and >> are not supported by JEDI code format 3 years 3 months ago #15336

  • SunHC
  • SunHC's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 5
  • Thank you received: 0
New object passcal support << and >> as the same feature to shr and shl, it works well in new FPC.
But JEDI code format in CT7.2 does not support << and >>.
OS:WIN10, 1909,X64

Please Log in or Create an account to join the conversation.

Operation << and >> are not supported by JEDI code format 3 years 3 months ago #15339

  • Matis A.
  • Matis A.'s Avatar
  • Away
  • Moderator
  • Moderator
  • Posts: 1047
  • Thank you received: 145
What is <<New object pascal>> and <<new FPC>> ?
PilotLogic Core Programmer

Please Log in or Create an account to join the conversation.

Last edit: by Matis A..

Operation << and >> are not supported by JEDI code format 3 years 3 months ago #15340

  • SunHC
  • SunHC's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 5
  • Thank you received: 0
Sorry for this imprecisely description. In my view, object pascal is in evolution,so "new" mean the latest versioni of PFC or other object pascal compiler.
'<<' and '>>' are bit wise operations in many other language, like c and c++, now object pascal support it as bit wise operation , have the same feature as shr and shl.

Please Log in or Create an account to join the conversation.

Operation << and >> are not supported by JEDI code format 3 years 3 months ago #15341

  • Matis A.
  • Matis A.'s Avatar
  • Away
  • Moderator
  • Moderator
  • Posts: 1047
  • Thank you received: 145
Yes
but CT use always the latest FPC from trunk, updated dally,
so if FPC has this ability then and CT has the same ability.
PilotLogic Core Programmer

Please Log in or Create an account to join the conversation.

Operation << and >> are not supported by JEDI code format 3 years 3 months ago #15342

  • SunHC
  • SunHC's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 5
  • Thank you received: 0
It seems that JEDI code format's last update is around the year of 2013. May be '<<' or '>>' is supported after 2013 by FPC, so JEDI code format does not porcess '<< 'or '>>' properly.
sample code : g_offset := (lwState << 24);
then JEDI code format will show a error message ,see file attached.
Attachments:

Please Log in or Create an account to join the conversation.

Operation << and >> are not supported by JEDI code format 3 years 3 months ago #15343

  • Matis A.
  • Matis A.'s Avatar
  • Away
  • Moderator
  • Moderator
  • Posts: 1047
  • Thank you received: 145
Sir
We make some changes to JEDI code format (lz_Jcf2) at LAB CT ver 7.3
I hope to work for you
PilotLogic Core Programmer

Please Log in or Create an account to join the conversation.

  • Page:
  • 1