You cannot post messages because only members can post, and you are not currently a member.
Description:
This group is dedicated to general discussion about the Nemerle language and compiler. Don't hesitate to post beginners questions, as well as the more advanced ones.
|
|
|
C# readonly equivalent ?
|
| |
as you know C# has a readonly keyword which is a bit different than
immutable. It allows consturtor to modify the field. Is there an
equiavalent of this in nemerle ?
|
|
with macro Tips please ?
|
| |
Hello since there are no initializers in nemerle as C# I want to
implement a with macro uses as below:
def x = newObject("Hello World") with { Foo = "Bar" , Bar = "Foo" } ?
will initialize x's properties as above?
Any tips on this ?
|
|
Implementing IEnumerable[T]
|
| |
I am basically trying to implement a generic IEnumerable[T].
IEnumerable[T] requires two GetEnumerator() definitions.
In C#, it would look something like this:
using System.Collections.Generic;
IEnumerator<foo> IEnumerable<foo>.GetEnumerator ()
{
return bar;
}... more »
|
|
speed of C# vs Nemerle
|
| |
I love the design of Nemerle, and wanted to do some tests before
starting a project with it.
This is an inner loop of a test program that works on arrays of length
95,000,000:
for (mutable j = periods+1; j < dat.Length; j++) {
sumD = sumD + (periods * dat[j]) - (runSum[j-1] - runSum[j... more »
|
|
Visual Studio Integration is a Nightmare
|
| |
Hello.
Working in Visual Studio with Nemerle is a nightmare if you are doing
something non-trivial:
1) types referenced from other assemblies cause "unbound type name"
errors (often but not always)
2) macro assemblies updates are not detected, obviously causing all
sorts of errors (I think this is always, after the project load)... more »
|
|
Define Operator from a Macro
|
| |
I'm trying to define the == and != operators from a macro.
Something like:
tb.Define(<[ decl:
public static ==(p1 : $t, p2 : $t) : bool
{
// compare the two parms...
...]>);
However it won't compile the "==".
...I can construct the function definition manually instead of using the
syntax lift, but that seems pretty annoying.... more »
|
|
double casted to IMyInterface
|
| |
The other day I casted a bool to an interface explicitly. The compiler
was ok.
When I invoked the methods I got a run-time exception (entry point not
found).
Is it a compiler bug?
|
|
globals wins on locals by design?
|
| |
Hello.
using System;
public static Run(Console : IConsole) : void {
Console.WriteLine("hello"); // <--- It's System Console. The
parameter is unused
...
Is it by design?
|
|
|