Re: can't create error


[ Follow Ups ] [ Post Followup ] [ CS328 Message Board ] [ FAQ ]

Posted by Darwin on July 16, 2001 at 23:02:42:

In Reply to: Re: can't create error posted by jojo on July 16, 2001 at 22:54:30:

: : : Also did anyone answer the question about why
: : : PROCESS B--create 21 gave an error
: : : ?

: : : Can anyone tell me why we couldn't create such foo.

: : : Thanks again.

: : it's simply by stipulation that certain foos can't be created. Those stipulations are likely found in dvw's MAGIC.

: so how does our program know which ones they are?

: Like in my create_foo:
: (sorry if it sounds simple and stupid)
: but create_foo just stores or is supposed to store the given values into a map

: but I don't have anything that says
: if (given Dr.VW's magic bad foos)
: return FAILURE;
: else
: do what I just described above....

: you know? how does our program know what the bad foo is?

: Thanks!

as one of my private data members I have a set which keeps track of successful foo construction. In my create function, the policy is to construct the foo if initializer is not in my success set.


Follow Ups:



Post a Followup

Name:
E-Mail:

Subject:

Comments:

Optional Link URL:
Link Title:
Optional Image URL:


[ Follow Ups ] [ Post Followup ] [ CS328 Message Board ] [ FAQ ]