logo       

Re: Re: Patch review - Multi-dimensional arrays: msg#00050

lang.boo.devel

Subject: Re: Re: Patch review - Multi-dimensional arrays

----- Original Message ----- From: "Rodrigo B. de Oliveira" <rodrigobamboo-Re5JQEeQqe8AvxtiuMwx3w@xxxxxxxxxxxxxxxx>
To: <dev-lK5OYVT/OUeB6hVKlEQLGA@xxxxxxxxxxxxxxxx>
Sent: Sunday, February 20, 2005 1:42 PM
Subject: [boo-dev] Re: Patch review - Multi-dimensional arrays

print a[1, 2]

would become:

print cast(int, a.GetValue((1, 2)))


With the option to turn off any index normalising, I hope?

I'm not sure what could be the best way to specify compiler options in code. It should at least not be one macro per option, as this would clutter the namespace. The #option option does not look very Boo, and I don't know if it's easy to add such directives to the AST, which it should be. Maybe an option macro for inline blocks, in combination with a compiler switch for global control and an option attribute to mark classes and methods?

Hans-Christian




<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise