Skip to content
This repository has been archived by the owner on May 4, 2024. It is now read-only.

[Feature Request] import const from another module #1027

Open
guotie opened this issue Apr 7, 2023 · 0 comments
Open

[Feature Request] import const from another module #1027

guotie opened this issue Apr 7, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@guotie
Copy link

guotie commented Apr 7, 2023

🚀 Feature Request

Currently, we cannot import const from another module, because const is internal.

But sometime we need import const from another module/modules.

Pitch

Describe the solution you'd like

a.move

const BUY: u64 = 1;
const SELL: u64 = 2;

b.move

use mod::a::BUY;
use mod::a::SELL;
@guotie guotie added the enhancement New feature or request label Apr 7, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant