Project level using statements

0 views
Skip to first unread message

Andrew Davey

unread,
Jun 13, 2009, 7:57:27 AM6/13/09
to Nemerle Forum
VB.NET projects let me define namespaces that are automatically
included in every file in the project.
Can Nemerle support this?

VladD2

unread,
Jun 15, 2009, 7:49:26 AM6/15/09
to nemer...@googlegroups.com
2009/6/13 Andrew Davey <a.j....@gmail.com>:

>
> VB.NET projects let me define namespaces that are automatically
> included in every file in the project.

You can give me link on this feature?

> Can Nemerle support this?

No. But you can use "type" keyword to define type alias. It sometime
very useful.

Andrew Davey

unread,
Jun 15, 2009, 8:17:16 AM6/15/09
to Nemerle Forum
VB.NET /imports compiler option:
http://msdn.microsoft.com/en-us/library/64c84czf(VS.80).aspx

So instead of having the same 5 (for example) using statements at the
top of each .n, I could add a compiler switch that auto prepends them.

On Jun 15, 12:49 pm, VladD2 <v...@rsdn.ru> wrote:
> 2009/6/13 Andrew Davey <a.j.da...@gmail.com>:

VladD2

unread,
Jun 15, 2009, 10:20:22 AM6/15/09
to nemer...@googlegroups.com
2009/6/15 Andrew Davey <a.j....@gmail.com>:

>
> VB.NET /imports compiler option:
> http://msdn.microsoft.com/en-us/library/64c84czf(VS.80).aspx
>
> So instead of having the same 5 (for example) using statements at the
> top of each .n, I could add a compiler switch that auto prepends them.

I agree, it cool feature. And it very simple to implement it.

Maybe you try to implement it herself? We can help you to implement it.

Reply all
Reply to author
Forward
0 new messages