Path: utzoo!utgpu!water!watmath!clyde!att-cb!att-ih!pacbell!ptsfa!ames!mailrus!umix!uunet!mcvax!unido!rmi!shimoda From: shimoda@rmi.UUCP (Markus Schmidt) Newsgroups: comp.sys.amiga Subject: Re: Amiga programmer's hint $14 Message-ID: <905@rmi.UUCP> Date: 7 Mar 88 11:12:28 GMT References: <8803032106.AA06910@cory.Berkeley.EDU> Reply-To: shimoda@rmi.UUCP (Markus Schmidt) Organization: RMI Net, Aachen, W.Germany Lines: 20 Posted: Mon Mar 7 12:12:28 1988 In article <8803032106.AA06910@cory.Berkeley.EDU> dillon@CORY.BERKELEY.EDU (Matt Dillon) writes: : : (anycast)variable = variable; NOT LEGAL : variable = &(anycast)variable; NOT LEGAL : : variable = (somecasts)&variable; LEGAL : : char c = *(char *)&bar; LEGAL. (USEFUL?) : Yeah, useful in some cases, but can be also dangerous if you hit odd addresses for ints and longs. So a char foo[4]= {\{1, 2, 3, 4}; b= *(int *)foo+1; may give you (and gave me) the guru! Cu Markus (shimoda@rmi.uucp)