Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2019-11

cvar external symbol name

3 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Ryan Joseph

Do cvars not allow external symbol names like functions do? With function I can declare a name but for cvar I'm getting an error.

  PyBaseString_Type:PPyTypeObject; cvar; external name 'somename';

Regards,
Ryan Joseph

Reply by email

Jonas Maebe
to Ryan Joseph
Ryan Joseph wrote
Do cvars not allow external symbol names like functions do? With function I can declare a name but for cvar I'm getting an error. PyBaseString_Type:PPyTypeObject; cvar; external name 'somename';

The only thing cvar does is to mangle symbol name using the default C-style name mangling. Specifying an explicit symbol name would just overwrite whatever effect "cvar" has, so combining both is useless and rejected.

Jonas

Reply by email

Ryan Joseph
to Jonas Maebe
Show quoted text 6 lines
On Nov 21, 2019, at 3:40 PM, Jonas Maebe wrote: The only thing cvar does is to mangle symbol name using the default C-style name mangling. Specifying an explicit symbol name would just overwrite whatever effect "cvar" has, so combining both is useless and rejected.

Thanks I see now.

Btw just because I have your attention I made a bug report (https://bugs.freepascal.org/view.php?id=36333) that's ObjC related in case you didn't see it.

Regards,
Ryan Joseph

Reply by email