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

Regan Heath regan at netwin.co.nz
Sat Jul 15 02:52:42 PDT 2006


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sudoku.d
Type: application/octet-stream
Size: 3799 bytes
Desc: not available
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20060715/23fc644b/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: slib.d
Type: application/octet-stream
Size: 381 bytes
Desc: not available
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20060715/23fc644b/attachment-0001.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 140e.csv
Type: text/comma-separated-values
Size: 119 bytes
Desc: not available
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20060715/23fc644b/attachment.bin>


More information about the Digitalmars-d mailing list