Recent

Author Topic: Pointer sintaxis and keyboard  (Read 3485 times)

JaimeReus

  • Newbie
  • Posts: 3
Pointer sintaxis and keyboard
« on: September 23, 2018, 06:16:32 pm »
To declare a pointer variable, I write this:

type
PtrInteger = ˆinteger;

I write the “ˆ” character pressing Alt, Shift and “ˆ`”.
I get this error message: illegal character “?” ($CB)

What’s wrong?
Thanks for your help•••

Thaddy

  • Hero Member
  • *****
  • Posts: 14373
  • Sensorship about opinions does not belong here.
Re: Pointer sintaxis and keyboard
« Reply #1 on: September 23, 2018, 06:51:35 pm »
Code: Pascal  [Select][+][-]
  1. type
  2. PtrInteger = ^integer; // not type PtrInteger = ˆinteger;
  3.  

'~' is illegal. You want '^'
Also note that this particular type PInteger is already declared by the RTL, as are all pointers to simple types....

« Last Edit: September 23, 2018, 06:55:56 pm by Thaddy »
Object Pascal programmers should get rid of their "component fetish" especially with the non-visuals.

 

TinyPortal © 2005-2018