Re: Add compile time mutable variable type

2012-06-04 Thread Chang Long
On Tuesday, 5 June 2012 at 05:39:34 UTC, Ali Çehreli wrote: On 06/04/2012 06:22 PM, Chang Long wrote: > The previous two example is not correct, please see this one: Your post sounds interesting but there are lots of errors: > size_t line l; <-- ERROR > void this(string name) { <-- ERROR et

Re: Add compile time mutable variable type

2012-06-04 Thread Ali Çehreli
On 06/04/2012 06:22 PM, Chang Long wrote: > The previous two example is not correct, please see this one: Your post sounds interesting but there are lots of errors: > size_t line l; <-- ERROR > void this(string name) { <-- ERROR etc. Can you actually compile that code? It would be better if

Re: Add compile time mutable variable type

2012-06-04 Thread Chang Long
On Tuesday, 5 June 2012 at 01:01:07 UTC, Chang Long wrote: I need a type can be change on compile time, it can be immutable or mutable at run time. For example : --- abstract class Template_parameter_Base{ Typ

Re: Add compile time mutable variable type

2012-06-04 Thread Chang Long
On Tuesday, 5 June 2012 at 01:01:07 UTC, Chang Long wrote: I need a type can be change on compile time, it can be immutable or mutable at run time. For example : --- abstract class Template_parameter_Base{ Typ

Add compile time mutable variable type

2012-06-04 Thread Chang Long
I need a type can be change on compile time, it can be immutable or mutable at run time. For example : --- abstract class Template_parameter_Base{ TypeInto ti; string file ; size_t line l;