move-language / move

Apache License 2.0
2.24k stars 677 forks source link

[Feature Request] import const from another module #1027

Open guotie opened 1 year ago

guotie commented 1 year ago

🚀 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;