v icon indicating copy to clipboard operation
v copied to clipboard

`int` should change size based on target system

Open JalonSolov opened this issue 3 months ago • 2 comments

In Go, int is 32-bit on 32-bit targets, 64-bit on 64-bit targets. V's int should follow these same rules.

Alex has stated (on Discord) that this is an intended change.

I would like to see this change made sooner, rather than later, as it affects other tools such as go2v, which currently changes int to isize in the V code, to force the types to work the same between the languages.

Once this change it made, that forced type change will no longer be required.

[!NOTE] You can use the 👍 reaction to increase the issue's priority for developers.

Please note that only the 👍 reaction to the issue itself counts as a vote. Other reactions and those to comments will not be taken into account.

JalonSolov avatar Aug 30 '25 22:08 JalonSolov

Connected to Huly®: V_0.6-24411

huly-for-github[bot] avatar Aug 30 '25 22:08 huly-for-github[bot]

-d new_int allows int size to be changed based on the target system.

Delta456 avatar Nov 18 '25 15:11 Delta456