[OT] Re: Lack of `outer` keyword makes inner class dup implossible

S. S._member at pathlink.com
Mon Jul 17 10:03:26 PDT 2006


In article <optcp5p4fx23k2f5 at nrage>, Regan Heath says...
>
>------------IvETWbTDu3bk1hw3mOmW4b
>Content-Type: text/plain; format=flowed; delsp=yes; charset=iso-8859-15
>Content-Transfer-Encoding: 8bit
>
>On Fri, 14 Jul 2006 17:47:51 -0700, S. <user at pathlink.com> wrote:
>> On 2006-07-14 13:48:14 -0700, BCS <BCS at pathlink.com> said:
>>
>>> S. wrote:
>>>> It seems that because inner classes lack an `outer` keyword it is  
>>>> impossible for
>>>> them to create a new instance for the purpose of COW when operators  
>>>> like opCom
>>>> are called...
>>>>  sudoku.d(318): outer class Foobar 'this' needed to 'new' nested class  
>>>> BarBar
>>>>
>>>  sudoku.d as in the game? What does the program do? Is it a generator,  
>>> a solver, or a player? I ask because I have a solver done and would be  
>>> interested in comparing them.
>>
>> Yes, I'm fiddling around with an analytical solver.  Mine currently  
>> doesn't solve as many as I would like.  I only implemented three  
>> elimination methods so far.
>
>I wrote a sudoku solver too. It expects the puzzle in a CSV file, example  
>attached.
>
>As far as I know it will solve anything which is 'logically solvable' ..  
>in other words as long as there is always at least one definate next step  
>with no 2+ choices and guessing involved.
>
>Regan

Wow, your code is kind of tricky.  It'll take me a bit to understand all of it.

I'll post mine here in a bit.  It's ALOT longer though =/ Mine should handle
larger grids though,  I haven't gotten my hands on any data for 16x16 or
whatever yet though.





More information about the Digitalmars-d mailing list