The Daily Static
  The Daily Static
UF Archives
Register
UF Membership
Ad Free Site
Postcards
Community

Geekfinder
UFie Gear
Advertise on UF

Forum Rules
& FAQ


Username

Password


Create a New Account

 
 

Back to UserFriendly Strip Comments Index

jmaxsohmer: Re prolog by Mad Marty2006-11-20 00:24:23
  That's interesting... by jmaxsohmer2006-11-20 00:35:03
    Don't know it... by Mad Marty 2006-11-20 00:49:36
Since this year, we have to decide between logic and functional programming, because of a shortening of the studies (bachelor/master instead of diploma). Yes, this is stupid, noone likes it. But I'm only taking CS as a subsidiary subject, so that's not affecting me much.
But on loops: we're doing the famous family tree, and so I did this:
twin_of(hans, georg).
...
twin_of(X,Y) :- twin_of(Y,X).
Volia: Loop, the infinite kind... I'm still not sure if it's stupid of Prolog not to remember past requests.

And I managed to produce a predicate which says yes to
vorfahre_von(iris, hans), but fails to list iris and hans with vorfahre_von(X,Y). /me likes challenges :)
[ Reply ]
      But that's just a silly call... by jmaxsohmer2006-11-20 01:05:13
        Yes, I was talking about university. by Mad Marty2006-11-20 01:31:07

 

[Todays Cartoon Discussion] [News Index]

Come get yer ARS (Account Registration System) Source Code here!
All images, characters, content and text are copyrighted and trademarks of J.D. Frazer except where other ownership applies. Don't do bad things, we have lawyers.
UserFriendly.Org and its operators are not liable for comments or content posted by its visitors, and will cheerfully assist the lawful authorities in hunting down script-kiddies, spammers and other net scum. And if you're really bad, we'll call your mom. (We're not kidding, we've done it before.)