Top Graphic
Ikayzo.org LogoHomeMissionCriteriaPeopleNews
EnglishJapanese

What's New
SDL
08.11.05 SDL is voted in by the review board.

Ikayzo.org Launch
06.24.05 Ikayzo.org, a global professional open source community is launched!

Beanshell
06.10.05 Beanshell joins BeanShell on the Ikayzo.org project list.
OSS Sites
Other great open source sites
  SourceForge
  CodeHaus
Discussion: Design Questions

Design Questions

Daniel Leuck
Wed Aug 17 13:10:20 HST 2005


> Daniel Leuck wrote:
> 
> > (!=null)
> >
> 
> This might be RTFM, but what does a null string look like in an SDL
> file? Hopefully no Oracle-ish confusion with empty strings.

Nope.  Its unambiguous in SDL.  "null" works the same way as Java or C# -it
uses a null literal.

empty_string ""
null_value null

See:
http://sdl.ikayzo.org/docs/display/SDL/Language+Guide#LanguageGuide-literals

 
> This looks good for simple cases, but defining types would be useful for
> complex schemas. Suppose you have two tags, "favorite" and "worst", both
> of which follow the "things" constraints. Using only literal types would
> get redundant.

Excellent point. Perhaps a "struct" keyword is in order.

Dan




Query: [How to search]

Display: Description: Sort: